|
|
|
@ -456,10 +456,15 @@ class Commands: |
|
|
|
time_str = datetime.datetime.fromtimestamp(timestamp).isoformat(' ')[:-3] |
|
|
|
time_str = datetime.datetime.fromtimestamp(timestamp).isoformat(' ')[:-3] |
|
|
|
except Exception: |
|
|
|
except Exception: |
|
|
|
time_str = "----" |
|
|
|
time_str = "----" |
|
|
|
|
|
|
|
|
|
|
|
label, is_default_label = self.wallet.get_label(tx_hash) |
|
|
|
label, is_default_label = self.wallet.get_label(tx_hash) |
|
|
|
|
|
|
|
out.append({ |
|
|
|
out.append({'txid':tx_hash, 'date':"%16s"%time_str, 'label':label, 'value':format_satoshis(value), 'confirmations':conf}) |
|
|
|
'txid':tx_hash, |
|
|
|
|
|
|
|
'timestamp':timestamp, |
|
|
|
|
|
|
|
'date':"%16s"%time_str, |
|
|
|
|
|
|
|
'label':label, |
|
|
|
|
|
|
|
'value':float(format_satoshis(value)) if value is not None else None, |
|
|
|
|
|
|
|
'confirmations':conf} |
|
|
|
|
|
|
|
) |
|
|
|
return out |
|
|
|
return out |
|
|
|
|
|
|
|
|
|
|
|
@command('w') |
|
|
|
@command('w') |
|
|
|
|