Fix Shop.py transfer with more arguments.

This commit is contained in:
Dominik Pantůček 2025-07-17 15:27:57 +02:00
parent 9f63a6760e
commit 6f945c3a0f

View file

@ -118,8 +118,8 @@ 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, amount, user.id, user.name]
"SELECT public.transfer_credit(%s, %s, %s, %s, %s, %s)",
[self.cash.id, amount, userfrom.id, userfrom.name, userto.id, userto.name]
)
self.db.commit()
#self.add_credit(amount, userto)