forked from brmlab/brmbar-github
Fix Shop.py credit -> amount
This commit is contained in:
parent
ff68817129
commit
9f63a6760e
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ class Shop:
|
||||||
def transfer_credit(self, userfrom, userto, amount):
|
def transfer_credit(self, userfrom, userto, amount):
|
||||||
self.db.execute_and_fetch(
|
self.db.execute_and_fetch(
|
||||||
"SELECT public.transfer_credit(%s, %s, %s, %s)",
|
"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.db.commit()
|
||||||
#self.add_credit(amount, userto)
|
#self.add_credit(amount, userto)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue