forked from brmlab/brmbar-github
Record to columns.
This commit is contained in:
parent
a1ec2bdb6b
commit
8487202b8f
1 changed files with 3 additions and 2 deletions
|
@ -186,8 +186,9 @@ class Shop:
|
||||||
return self.currency.str(-self.credit_balance(overflow=overflow))
|
return self.currency.str(-self.credit_balance(overflow=overflow))
|
||||||
|
|
||||||
def inventory_balance(self):
|
def inventory_balance(self):
|
||||||
res = self.db.execute_and_fetch("SELECT public.inventory_balance()")
|
resa = self.db.execute_and_fetch("SELECT * FROM public.inventory_balance()")
|
||||||
logger.debug("inventory_balance res = %s", res)
|
res = resa[0]
|
||||||
|
logger.debug("inventory_balance resa = %s", resa)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def inventory_balance_str(self):
|
def inventory_balance_str(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue