From 03d313572e293d4a3d01cd4b4eb82f1d17214919 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 29 Jan 2016 20:25:42 +0100 Subject: [PATCH] kivy: fix formatting of fiat values in history --- gui/kivy/uix/screens.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/kivy/uix/screens.py b/gui/kivy/uix/screens.py index dc94f729f..711858c5a 100644 --- a/gui/kivy/uix/screens.py +++ b/gui/kivy/uix/screens.py @@ -133,7 +133,8 @@ class HistoryScreen(CScreen): date = timestamp_to_datetime(timestamp) rate = run_hook('history_rate', date) if self.app.fiat_unit: - quote_text = "..." if rate is None else "{0:.3} {1}".format(Decimal(value) / 100000000 * Decimal(rate), self.app.fiat_unit) + s = run_hook('historical_value_str', value, date) + quote_text = "..." if s is None else s + ' ' + self.app.fiat_unit else: quote_text = '' yield (conf, icon, time_str, label, value, tx_hash, quote_text)