A fix in the order for new elements in lists

This commit is contained in:
Manuel Cortez 2016-02-17 11:19:46 -06:00
parent b9d835371e
commit df4f37b744

View File

@ -36,7 +36,7 @@ class baseBuffer(object):
if no_next == True: if no_next == True:
if self.tab.list.get_count() > 0 and num > 0: if self.tab.list.get_count() > 0 and num > 0:
print "inserting a value" print "inserting a value"
[self.insert(i, True) for i in self.session.db[self.name]["items"][num:]] [self.insert(i, True) for i in self.session.db[self.name]["items"][:num]]
else: else:
[self.insert(i) for i in self.session.db[self.name]["items"][:num]] [self.insert(i) for i in self.session.db[self.name]["items"][:num]]