exempt @arts on WPD from gaining coins

pull/146/head
Aevann 2023-05-05 01:48:54 +03:00
parent 081d0065a7
commit 8cb34f1d91
1 changed files with 3 additions and 0 deletions

View File

@ -195,6 +195,9 @@ class User(Base):
return f"<{self.__class__.__name__}(id={self.id}, username={self.username})>"
def pay_account(self, currency, amount):
if SITE == 'watchpeopledie.tv' and self.id == 5222:
return
if currency == 'coins':
g.db.query(User).filter(User.id == self.id).update({ User.coins: User.coins + amount })
else: