Browse Source

qt: fix export history

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
SomberNight 5 years ago
parent
commit
cbc3e13e28
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 9
      electrum/gui/qt/history_list.py

9
electrum/gui/qt/history_list.py

@ -696,12 +696,7 @@ class HistoryList(MyTreeView, AcceptFileDragDrop):
self.parent.show_message(_("Your wallet history has been successfully exported."))
def do_export_history(self, file_name, is_csv):
# FIXME this is currently broken.
hist = self.wallet.get_full_history(domain=self.hm.get_domain(),
from_timestamp=None,
to_timestamp=None,
fx=self.parent.fx,
show_fees=True)
hist = self.wallet.get_detailed_history(fx=self.parent.fx)
txns = hist['transactions']
lines = []
if is_csv:
@ -709,7 +704,7 @@ class HistoryList(MyTreeView, AcceptFileDragDrop):
lines.append([item['txid'],
item.get('label', ''),
item['confirmations'],
item['value'],
item['bc_value'],
item.get('fiat_value', ''),
item.get('fee', ''),
item.get('fiat_fee', ''),

Loading…
Cancel
Save