mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 20:53:13 -06:00
Removed saving position in database for now
This commit is contained in:
parent
a4cbbfcb9f
commit
9f2c240fc1
@ -455,7 +455,7 @@ class baseBufferController(bufferController):
|
|||||||
self.session.sound.play("audio.ogg")
|
self.session.sound.play("audio.ogg")
|
||||||
if utils.is_geocoded(tweet):
|
if utils.is_geocoded(tweet):
|
||||||
self.session.sound.play("geo.ogg")
|
self.session.sound.play("geo.ogg")
|
||||||
self.session.db[str(self.name+"_pos")]=self.buffer.list.get_selected()
|
# self.session.db[str(self.name+"_pos")]=self.buffer.list.get_selected()
|
||||||
|
|
||||||
@_tweets_exist
|
@_tweets_exist
|
||||||
def audio(self,url=''):
|
def audio(self,url=''):
|
||||||
|
@ -1336,8 +1336,8 @@ class Controller(object):
|
|||||||
def insert_buffer(self, buffer, position):
|
def insert_buffer(self, buffer, position):
|
||||||
# print ref_buf.name, ref_buf.account
|
# print ref_buf.name, ref_buf.account
|
||||||
# if ref_buf.account != buffer.account or ref_buf.type == "account" or type(ref_buf) == buffers.emptyPanel:
|
# if ref_buf.account != buffer.account or ref_buf.type == "account" or type(ref_buf) == buffers.emptyPanel:
|
||||||
buffers = self.get_buffers_for_account(buffer.account)
|
# buffers = self.get_buffers_for_account(buffer.account)
|
||||||
# ref_buf = self.buffers[position+1]
|
ref_buf = self.buffers[position+1]
|
||||||
empty = True
|
empty = True
|
||||||
for i in buffers[position+1:]:
|
for i in buffers[position+1:]:
|
||||||
if i.type == "account" or i.invisible == False:
|
if i.type == "account" or i.invisible == False:
|
||||||
@ -1346,11 +1346,11 @@ class Controller(object):
|
|||||||
empty = False
|
empty = False
|
||||||
if empty == True:
|
if empty == True:
|
||||||
self.buffers.append(buffer)
|
self.buffers.append(buffer)
|
||||||
print "account"
|
# print "account"
|
||||||
else:
|
else:
|
||||||
self.buffers.insert(position+1, buffer)
|
self.buffers.insert(position+1, buffer)
|
||||||
for i in self.buffers:
|
# for i in self.buffers:
|
||||||
print i.name, i.account
|
# print i.name, i.account
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
config.app.write()
|
config.app.write()
|
||||||
|
Loading…
Reference in New Issue
Block a user