user
doesn't exist in _move(), it's user1
(coins.py)
This commit is contained in:
parent
1b94a72a65
commit
d7d707d980
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
self._set_user_coins(user, user_coins-amount)
|
self._set_user_coins(user, user_coins-amount)
|
||||||
return user_coins-amount
|
return user_coins-amount
|
||||||
def _move(self, user1, user2, amount):
|
def _move(self, user1, user2, amount):
|
||||||
user1_coins = self._get_user_coins(user)
|
user1_coins = self._get_user_coins(user1)
|
||||||
self._set_user_coins(user1, user1_coins-amount)
|
self._set_user_coins(user1, user1_coins-amount)
|
||||||
|
|
||||||
user2_coins = self._get_user_coins(user2)
|
user2_coins = self._get_user_coins(user2)
|
||||||
|
|
Loading…
Reference in a new issue