Browse Source

minor fix: index

283
ThomasV 10 years ago
parent
commit
617fb36b06
  1. 2
      plugins/exchange_rate.py

2
plugins/exchange_rate.py

@ -339,7 +339,7 @@ class Plugin(BasePlugin):
tx_info = self.tx_list[str(item.data(0, Qt.UserRole).toPyObject())] tx_info = self.tx_list[str(item.data(0, Qt.UserRole).toPyObject())]
except Exception: except Exception:
newtx = self.wallet.get_history() 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} tx_info = {'timestamp':int(time.time()), 'value': v}
pass pass
tx_time = int(tx_info['timestamp']) tx_time = int(tx_info['timestamp'])

Loading…
Cancel
Save