fixes from runtime

This commit is contained in:
niekt0 2015-01-31 04:11:28 +01:00
parent f922edf042
commit 96bf23662e
2 changed files with 3 additions and 3 deletions

View file

@ -106,7 +106,7 @@ class Shop:
# We assume all debt accounts share a currency
sumselect = """
SELECT SUM(crbalance)
FROM accounts WHERE acctype = %s AND
FROM accounts WHERE acctype = %s
"""
cur = self.db.execute_and_fetch(sumselect, ["debt"])
cur = cur[0] or 0