Fix Shop.py credit -> amount

This commit is contained in:
Dominik Pantůček 2025-07-17 15:24:18 +02:00
parent ff68817129
commit 9f63a6760e

View file

@ -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)