From a1ec2bdb6b1596185473f7586c31a1bb3d720b34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pant=C5=AF=C4=8Dek?= Date: Mon, 21 Jul 2025 17:06:13 +0200 Subject: [PATCH] Debug raw inventory balance result. --- brmbar3/brmbar/Shop.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/brmbar3/brmbar/Shop.py b/brmbar3/brmbar/Shop.py index 4c32973..887984a 100644 --- a/brmbar3/brmbar/Shop.py +++ b/brmbar3/brmbar/Shop.py @@ -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())