fix history export (bug #338)
This commit is contained in:
parent
3aa76f1808
commit
294ac1f711
|
@ -111,12 +111,12 @@ def csv_transaction(wallet):
|
||||||
time_string = "pending"
|
time_string = "pending"
|
||||||
|
|
||||||
if value is not None:
|
if value is not None:
|
||||||
value_string = format_satoshis(value, True, wallet.num_zeros)
|
value_string = format_satoshis(value, True)
|
||||||
else:
|
else:
|
||||||
value_string = '--'
|
value_string = '--'
|
||||||
|
|
||||||
if fee is not None:
|
if fee is not None:
|
||||||
fee_string = format_satoshis(fee, True, wallet.num_zeros)
|
fee_string = format_satoshis(fee, True)
|
||||||
else:
|
else:
|
||||||
fee_string = '0'
|
fee_string = '0'
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ def csv_transaction(wallet):
|
||||||
else:
|
else:
|
||||||
label = ""
|
label = ""
|
||||||
|
|
||||||
balance_string = format_satoshis(balance, False, wallet.num_zeros)
|
balance_string = format_satoshis(balance, False)
|
||||||
transaction.writerow([tx_hash, label, confirmations, value_string, fee_string, balance_string, time_string])
|
transaction.writerow([tx_hash, label, confirmations, value_string, fee_string, balance_string, time_string])
|
||||||
QMessageBox.information(None,"CSV Export created", "Your CSV export has been successfully created.")
|
QMessageBox.information(None,"CSV Export created", "Your CSV export has been successfully created.")
|
||||||
except (IOError, os.error), reason:
|
except (IOError, os.error), reason:
|
||||||
|
|
Loading…
Reference in New Issue