forked from brmlab/brmbar-github
Fix Shop.py transfer with more arguments.
This commit is contained in:
parent
9f63a6760e
commit
6f945c3a0f
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue