From bc95b0b4db007d9fad748cb7f15a5c7b6ac39751 Mon Sep 17 00:00:00 2001 From: pooler Date: Thu, 30 Apr 2015 19:41:33 +0200 Subject: [PATCH] Fix variable reference in Exchange Rates plugin --- plugins/exchange_rate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/exchange_rate.py b/plugins/exchange_rate.py index 86b586e2..250624e3 100644 --- a/plugins/exchange_rate.py +++ b/plugins/exchange_rate.py @@ -347,7 +347,7 @@ class Plugin(BasePlugin): if self.cur_exchange == "CoinDesk": tx_time_str = datetime.datetime.fromtimestamp(tx_time).strftime('%Y-%m-%d') try: - tx_fiat_val = "%.2f %s" % (value * Decimal(self.resp_hist['bpi'][tx_time_str]), "USD") + tx_fiat_val = "%.2f %s" % (tx_value * Decimal(self.resp_hist['bpi'][tx_time_str]), "USD") except KeyError: tx_fiat_val = "%.2f %s" % (self.btc_rate * Decimal(str(tx_info['value']))/100000000 , "USD") elif self.cur_exchange == "Winkdex":