git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
dab31f0
)
change the format returned by history command
author
ThomasV
<thomasv@gitorious>
Wed, 12 Mar 2014 08:52:17 +0000 (09:52 +0100)
committer
ThomasV
<thomasv@gitorious>
Wed, 12 Mar 2014 08:52:17 +0000 (09:52 +0100)
lib/commands.py
patch
|
blob
|
history
diff --git
a/lib/commands.py
b/lib/commands.py
index
bb2b7c2
..
4dadf34
100644
(file)
--- a/
lib/commands.py
+++ b/
lib/commands.py
@@
-337,10
+337,8
@@
class Commands:
time_str = "----"
label, is_default_label = self.wallet.get_label(tx_hash)
- if not label: label = tx_hash
- else: label = label + ' '*(64 - len(label) )
- out.append( "%16s"%time_str + " " + label + " " + format_satoshis(value)+ " "+ format_satoshis(balance) )
+ out.append({'txid':tx_hash, 'date':"%16s"%time_str, 'label':label, 'value':format_satoshis(value)})
return out