From 0645e6c9b02950f8f110b7ab84d04b21ea1a78bd Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Tue, 25 Sep 2012 00:12:06 +0200 Subject: [PATCH] brmbar.Shop.account_list(): Actually use acctype parameter --- brmbar3/brmbar/Shop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brmbar3/brmbar/Shop.py b/brmbar3/brmbar/Shop.py index 8a05313..48b9505 100644 --- a/brmbar3/brmbar/Shop.py +++ b/brmbar3/brmbar/Shop.py @@ -104,7 +104,7 @@ class Shop: def account_list(self, acctype): accts = [] with closing(self.db.cursor()) as cur: - cur.execute("SELECT id FROM accounts WHERE acctype = %s", ["debt"]) + cur.execute("SELECT id FROM accounts WHERE acctype = %s", [acctype]) for inventory in cur: accts += [ Account.load(self.db, id = inventory[0]) ] return accts