From b2a80d85223f817d847a00d5bfdd66ff6f64145e Mon Sep 17 00:00:00 2001 From: Michael Wozniak Date: Sat, 19 Apr 2014 09:03:11 -0400 Subject: [PATCH] Exchange rate update use exchange rate value instead of string to calculate balance --- plugins/exchange_rate.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/plugins/exchange_rate.py b/plugins/exchange_rate.py index cddf5ae..64b0ec7 100644 --- a/plugins/exchange_rate.py +++ b/plugins/exchange_rate.py @@ -358,7 +358,7 @@ class Plugin(BasePlugin): if quote: price_text = "1 BTC~%s"%quote fiat_currency = quote[-3:] - btc_price = quote[:-4] + btc_price = self.btc_rate fiat_balance = Decimal(btc_price) * (Decimal(btc_balance)/100000000) balance_text = "(%.2f %s)" % (fiat_balance,fiat_currency) text = " " + balance_text + " " + price_text + " " -- 1.7.1