From 18b52e8909a280e4de246f502ac456bfe9ed2667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Wed, 20 Jul 2016 04:47:39 -0500 Subject: [PATCH] Fixed load of new items in the visible timeline with inverted buffers --- src/controller/buffersController.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/controller/buffersController.py b/src/controller/buffersController.py index f3269348..57c01c5d 100644 --- a/src/controller/buffersController.py +++ b/src/controller/buffersController.py @@ -377,9 +377,11 @@ class baseBufferController(bufferController): tweet = self.compose_function(i, self.session.db, self.session.settings["general"]["relative_times"]) self.buffer.list.insert_item(False, *tweet) else: - for i in self.session.db[self.name][0:number_of_items]: + items = self.session.db[self.name][0:number_of_items] + items.reverse() + for i in items: tweet = self.compose_function(i, self.session.db, self.session.settings["general"]["relative_times"]) - self.buffer.list.insert_item(False, *tweet) + self.buffer.list.insert_item(True, *tweet) log.debug("Now the list contains %d items " % (self.buffer.list.get_count(),)) def add_new_item(self, item):