1
0
tBKwtWS 6 жил өмнө
parent
commit
33c8402ffa

+ 1 - 1
rotbot/common/queries.py

@@ -242,7 +242,7 @@ def punish_user(self, user_id, coin, karma):
     self.db.run('UPDATE website_users SET coin=coin-%(coin)s, karma_correction=karma_correction-%(karma)s WHERE id=%(user_id)s', coin=coin, karma=karma, user_id=user_id)
 
 def payday(self, coin):
-    self.db.run('UPDATE rotbot_user SET coin=coin+%(coin)s WHERE level>0')
+    self.db.run('UPDATE rotbot_user SET coin=coin+%(coin)s WHERE level>0', coin=coin)
 
 def cointransfer(self, sender_id, receiver_id, coin):
     self.db.run('UPDATE rotbot_user SET coin=coin-%(coin)s, coin_spent=coin_spent+%(coin)s, coin_given=coin_given+%(coin)s, ap_spent=ap_spent+1 WHERE id=%(sender_id)s', coin=coin, sender_id=sender_id)