From 64b9a7f7cfc6452d27e6eee809c41a2a6568d04b Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Sun, 23 Sep 2012 21:41:17 -0400 Subject: [PATCH 1/1] fix bug in the render code --- render.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/render.py b/render.py index 6d6415e..58cb92e 100755 --- a/render.py +++ b/render.py @@ -13,9 +13,7 @@ from mako.template import Template from config import * def get_balance(acct): - balance_cmd_tmp = BALANCE_CMD - balance_cmd_tmp.append(acct) - p = subprocess.Popen(balance_cmd_tmp, + p = subprocess.Popen(BALANCE_CMD + [acct], stdout=subprocess.PIPE) (out, _) = p.communicate() return float(re.sub(r'\s*(\d+)\s+.*', r'\1', out)) -- 2.39.5