log my currency movements

pull/225/head
Aevann 2024-03-02 23:28:35 +02:00
parent a29f049204
commit d3ab4d39a5
1 changed files with 0 additions and 6 deletions

View File

@ -224,9 +224,6 @@ class User(Base):
if SITE == 'rdrama.net' and self.id == 5237:
return
if self.admin_level >= PERMS['INFINITE_CURRENCY']:
return
user_query = g.db.query(User).options(load_only(User.id)).filter_by(id=self.id)
if currency == 'coins':
@ -253,9 +250,6 @@ class User(Base):
currency_log.balance = self.marseybux
def charge_account(self, currency, amount, reason=None, **kwargs):
if self.admin_level >= PERMS['INFINITE_CURRENCY']:
return (True, amount)
succeeded = False
charged_coins = 0