From 9f2c240fc1629fbb389704b790422055b9d72b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Fri, 17 Jul 2015 17:23:30 -0500 Subject: [PATCH] Removed saving position in database for now --- src/controller/buffersController.py | 2 +- src/controller/mainController.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/controller/buffersController.py b/src/controller/buffersController.py index 12f94492..d6e1282d 100644 --- a/src/controller/buffersController.py +++ b/src/controller/buffersController.py @@ -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=''): diff --git a/src/controller/mainController.py b/src/controller/mainController.py index 781977dc..3c66fb48 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -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()