projects
/
iron-blogger
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5f347e5
)
update render.py to work with new options in ledger >=3
author
Benjamin Mako Hill
<mako@atdot.cc>
Sun, 17 Jun 2012 02:10:41 +0000
(22:10 -0400)
committer
Benjamin Mako Hill
<mako@atdot.cc>
Sun, 17 Jun 2012 02:30:24 +0000
(22:30 -0400)
render.py
patch
|
blob
|
history
diff --git
a/render.py
b/render.py
index feaa16b8906dd6f50bce20bf99ae7493a196d205..6e4e80ce53e708b007b00f656a9526ebda1333d2 100755
(executable)
--- a/
render.py
+++ b/
render.py
@@
-20,8
+20,10
@@
def get_balance(acct):
return float(out.split()[0][1:])
def get_debts():
return float(out.split()[0][1:])
def get_debts():
- p = subprocess.Popen(['ledger', '-f', os.path.join(HERE, 'ledger'),
- '-n', 'balance', 'Pool:Owed:'],
+ p = subprocess.Popen(['ledger', '-f',
+ os.path.join(HERE, 'ledger'),
+ '--no-color', '--flat',
+ '--no-total', 'balance', 'Pool:Owed:'],
stdout=subprocess.PIPE)
(out, _) = p.communicate()
debts = []
stdout=subprocess.PIPE)
(out, _) = p.communicate()
debts = []
Benjamin Mako Hill
||
Want to submit a patch?