From: Benjamin Mako Hill Date: Sun, 17 Jun 2012 02:10:41 +0000 (-0400) Subject: update render.py to work with new options in ledger >=3 X-Git-Url: https://projects.mako.cc/source/iron-blogger/commitdiff_plain/e8f3c6a7285ec52dc90a60fbb75aebe4d143ce0e?hp=5f347e5d1d8a33bbe63ebdf2ae8467d398757dc8 update render.py to work with new options in ledger >=3 --- diff --git a/render.py b/render.py index feaa16b..6e4e80c 100755 --- a/render.py +++ b/render.py @@ -20,8 +20,10 @@ def get_balance(acct): 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 = []