Skip to content

Commit

Permalink
Fix account history export, which expected to export confirmations bu…
Browse files Browse the repository at this point in the history
…t no longer does. Reported by Rafei.
  • Loading branch information
rt121212121 committed Apr 9, 2020
1 parent 3ddfdeb commit 350d1e9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions electrumsv/gui/qt/main_window.py
Expand Up @@ -2522,16 +2522,15 @@ def do_export_history(self, account: AbstractAccount, fileName: str, is_csv: boo
lines = []
for item in history:
if is_csv:
lines.append([item['txid'], item.get('label', ''),
item['confirmations'], item['value'], item['date']])
lines.append([item['txid'], item.get('label', ''), item['value'],
item['timestamp']])
else:
lines.append(item)

with open(fileName, "w+") as f:
if is_csv:
transaction = csv.writer(f, lineterminator='\n')
transaction.writerow(["transaction_hash", "label", "confirmations",
"value", "timestamp"])
transaction.writerow(["transaction_hash", "label", "value", "timestamp"])
for line in lines:
transaction.writerow(line)
else:
Expand Down

0 comments on commit 350d1e9

Please sign in to comment.