From 9f63a6760ee55596b8470c32b1033d08ffa110d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pant=C5=AF=C4=8Dek?= Date: Thu, 17 Jul 2025 15:24:18 +0200 Subject: [PATCH] Fix Shop.py credit -> amount --- brmbar3/brmbar/Shop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brmbar3/brmbar/Shop.py b/brmbar3/brmbar/Shop.py index 7a64274..aa582b8 100644 --- a/brmbar3/brmbar/Shop.py +++ b/brmbar3/brmbar/Shop.py @@ -119,7 +119,7 @@ class Shop: def transfer_credit(self, userfrom, userto, amount): self.db.execute_and_fetch( "SELECT public.transfer_credit(%s, %s, %s, %s)", - [self.cash.id, credit, user.id, user.name] + [self.cash.id, amount, user.id, user.name] ) self.db.commit() #self.add_credit(amount, userto)