From 44e83a444e4d5c8a4abcb895febe73fd132366e7 Mon Sep 17 00:00:00 2001 From: inso <insomniak.fr@gmaiL.com> Date: Sat, 21 Jan 2017 18:26:49 +0100 Subject: [PATCH] Fix display of monetary mass --- src/sakia/gui/navigation/informations/model.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/sakia/gui/navigation/informations/model.py b/src/sakia/gui/navigation/informations/model.py index 8fdabcfd..2587b923 100644 --- a/src/sakia/gui/navigation/informations/model.py +++ b/src/sakia/gui/navigation/informations/model.py @@ -74,14 +74,13 @@ class InformationsModel(QObject): self.connection.currency, self.app).diff_localized(False, True) localized_data['mass'] = self.app.current_ref.instance(self.blockchain_service.current_mass(), - self.connection.currency, self.app).diff_localized(False, True) + self.connection.currency, self.app).localized(False, True) localized_data['ud_median_time'] = QLocale.toString( QLocale(), QDateTime.fromTime_t(self.blockchain_service.last_ud_time()), QLocale.dateTimeFormat(QLocale(), QLocale.ShortFormat) ) - localized_data['next_ud_median_time'] = QLocale.toString( QLocale(), QDateTime.fromTime_t(self.blockchain_service.last_ud_time() + params.dt), @@ -93,10 +92,10 @@ class InformationsModel(QObject): previous_monetary_mass / previous_members_count) localized_data['mass_minus_1_per_member'] = self.app.current_ref.instance(mass_minus_1_per_member, self.connection.currency, self.app) \ - .diff_localized(False, True) + .localized(False, True) localized_data['mass_minus_1'] = self.app.current_ref.instance(previous_monetary_mass, self.connection.currency, self.app) \ - .diff_localized(False, True) + .localized(False, True) # avoid divide by zero ! if members_count == 0 or previous_members_count == 0: localized_data['actual_growth'] = float(0) -- GitLab