forked from brmlab/brmbar-github
Debug raw inventory balance result.
This commit is contained in:
parent
7a301379f0
commit
a1ec2bdb6b
1 changed files with 3 additions and 1 deletions
|
@ -186,7 +186,9 @@ class Shop:
|
|||
return self.currency.str(-self.credit_balance(overflow=overflow))
|
||||
|
||||
def inventory_balance(self):
|
||||
return self.db.execute_and_fetch("SELECT public.inventory_balance()")
|
||||
res = self.db.execute_and_fetch("SELECT public.inventory_balance()")
|
||||
logger.debug("inventory_balance res = %s", res)
|
||||
return res
|
||||
|
||||
def inventory_balance_str(self):
|
||||
return self.currency.str(self.inventory_balance())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue