Compare commits

...

2 commits

Author SHA1 Message Date
381c2642d6
oopies 2020-08-23 22:40:43 +10:00
0e34ead855
don't display decimals for yen 0uo 2020-08-23 22:40:20 +10:00

View file

@ -60,6 +60,7 @@ class YahooAuctionsItem:
self.original_name = None
self.favourite = None
self.end_date = None
self.bids = 0
if url == None and from_json != None and id != None:
self.id = id
@ -106,7 +107,7 @@ class YahooAuctionsItem:
self.updating = False
def price_jpy(self):
return f"¥{self.price:.2f}"
return f"¥{self.price:.0f}"
def price_aud(self, rate = 75.0):
return f"${self.price / rate:.2f}"