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 "") self.items.set(treeIter, 0, item.name if item.name is not None else "")
if item.ready: if item.ready:
self.items.set(treeIter, 1, item.price_jpy()) listing[1], listing[2], listing[3] = item.price_jpy(), item.price_aud(), item.ending_at()
self.items.set(treeIter, 2, item.price_aud())
self.items.set(treeIter, 3, item.ending_at())
else: else:
self.items.set(treeIter, 1, "...") listing[0] = "Loading..." if item.name == "" else item.name
self.items.set(treeIter, 2, "...") for i in range(1, 4):
self.items.set(treeIter, 3, "...") listing[i] = "..."
def updateListTimes(self): def updateListTimes(self):