From 8487202b8f6d2fc50df3c9cffc2b89034b217049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pant=C5=AF=C4=8Dek?= Date: Mon, 21 Jul 2025 17:07:50 +0200 Subject: [PATCH] Record to columns. --- brmbar3/brmbar/Shop.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/brmbar3/brmbar/Shop.py b/brmbar3/brmbar/Shop.py index 887984a..b32f5bb 100644 --- a/brmbar3/brmbar/Shop.py +++ b/brmbar3/brmbar/Shop.py @@ -186,8 +186,9 @@ class Shop: return self.currency.str(-self.credit_balance(overflow=overflow)) def inventory_balance(self): - res = self.db.execute_and_fetch("SELECT public.inventory_balance()") - logger.debug("inventory_balance res = %s", res) + resa = self.db.execute_and_fetch("SELECT * FROM public.inventory_balance()") + res = resa[0] + logger.debug("inventory_balance resa = %s", resa) return res def inventory_balance_str(self):