1
0

kivy: fix history tab fiat values

follow-up 46f1fca7c3
This commit is contained in:
SomberNight
2019-04-21 01:55:46 +02:00
parent 8ad0c248a5
commit 2adabfd918
2 changed files with 7 additions and 1 deletions

View File

@@ -178,6 +178,12 @@ class Fiat(object):
else:
return "{:.2f}".format(self.value)
def to_ui_string(self):
if self.value is None or self.value.is_nan():
return _('No Data')
else:
return "{:.2f}".format(self.value) + ' ' + self.ccy
def __eq__(self, other):
if self.ccy != other.ccy:
return False