remove the flush from pay_account

pull/171/head
Aevann 2023-07-10 15:33:45 +03:00
parent cc30ca48af
commit 3d7c97214f
1 changed files with 0 additions and 2 deletions

View File

@ -209,8 +209,6 @@ class User(Base):
else:
self.marseybux += amount
g.db.flush()
def charge_account(self, currency, amount, **kwargs):
in_db = g.db.query(User).filter(User.id == self.id).with_for_update().one()