From 617fb36b06a183b165c25ef159911514839f929b Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 2 May 2015 11:21:19 +0200 Subject: [PATCH] minor fix: index --- 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 fc9ab7b2..754b4b36 100644 --- a/plugins/exchange_rate.py +++ b/plugins/exchange_rate.py @@ -339,7 +339,7 @@ class Plugin(BasePlugin): tx_info = self.tx_list[str(item.data(0, Qt.UserRole).toPyObject())] except Exception: newtx = self.wallet.get_history() - v = newtx[[x[0] for x in newtx].index(str(item.data(0, Qt.UserRole).toPyObject()))][3] + v = newtx[[x[0] for x in newtx].index(str(item.data(0, Qt.UserRole).toPyObject()))][2] tx_info = {'timestamp':int(time.time()), 'value': v} pass tx_time = int(tx_info['timestamp'])