mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -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")
|
||||
if utils.is_geocoded(tweet):
|
||||
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
|
||||
def audio(self,url=''):
|
||||
|
@ -1336,8 +1336,8 @@ class Controller(object):
|
||||
def insert_buffer(self, buffer, position):
|
||||
# print ref_buf.name, ref_buf.account
|
||||
# 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)
|
||||
# ref_buf = self.buffers[position+1]
|
||||
# buffers = self.get_buffers_for_account(buffer.account)
|
||||
ref_buf = self.buffers[position+1]
|
||||
empty = True
|
||||
for i in buffers[position+1:]:
|
||||
if i.type == "account" or i.invisible == False:
|
||||
@ -1346,11 +1346,11 @@ class Controller(object):
|
||||
empty = False
|
||||
if empty == True:
|
||||
self.buffers.append(buffer)
|
||||
print "account"
|
||||
# print "account"
|
||||
else:
|
||||
self.buffers.insert(position+1, buffer)
|
||||
for i in self.buffers:
|
||||
print i.name, i.account
|
||||
# for i in self.buffers:
|
||||
# print i.name, i.account
|
||||
|
||||
def __del__(self):
|
||||
config.app.write()
|
||||
|
Loading…
Reference in New Issue
Block a user