]> projects.mako.cc - iron-blogger/commitdiff
Revert "update render.py to work with new options in ledger >=3"
authorBenjamin Mako Hill <mako@atdot.cc>
Sat, 21 Jul 2012 15:43:59 +0000 (11:43 -0400)
committerBenjamin Mako Hill <mako@atdot.cc>
Sat, 21 Jul 2012 15:43:59 +0000 (11:43 -0400)
This reverts commit e8f3c6a7285ec52dc90a60fbb75aebe4d143ce0e.

render.py

index 8425d925b45ba1baec9977eaf3760dad83ab0bc6..9e1fbdc48b422609ebd4c574decf5fecd046a7ce 100755 (executable)
--- a/render.py
+++ b/render.py
@@ -20,10 +20,8 @@ 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'),
-                           '--no-color', '--flat',
-                           '--no-total', 'balance', 'Pool:Owed:'],
+    p = subprocess.Popen(['ledger', '-f', os.path.join(HERE, 'ledger'),
+                          '-n', '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?