From e8f3c6a7285ec52dc90a60fbb75aebe4d143ce0e Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Sat, 16 Jun 2012 22:10:41 -0400 Subject: [PATCH 1/1] update render.py to work with new options in ledger >=3 --- render.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 = [] -- 2.39.5