neater code

This commit is contained in:
Lynne Megido 2020-08-24 00:50:08 +10:00
parent b8e2ed8c86
commit 0c51ba642a
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90

View file

@ -193,13 +193,11 @@ class BuypeebApp:
self.items.set(treeIter, 0, item.name if item.name is not None else "")
if item.ready:
self.items.set(treeIter, 1, item.price_jpy())
self.items.set(treeIter, 2, item.price_aud())
self.items.set(treeIter, 3, item.ending_at())
listing[1], listing[2], listing[3] = item.price_jpy(), item.price_aud(), item.ending_at()
else:
self.items.set(treeIter, 1, "...")
self.items.set(treeIter, 2, "...")
self.items.set(treeIter, 3, "...")
listing[0] = "Loading..." if item.name == "" else item.name
for i in range(1, 4):
listing[i] = "..."
def updateListTimes(self):