X-Git-Url: https://projects.mako.cc/source/iron-blogger/blobdiff_plain/30fd9f8032af69d94001dfbddcdb5b392e9e4bcd..41fbcbee19e5eee2583b2f742ea5c489437885bf:/render.py 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 = []