forked from rDrama/rDrama
remove the flush from pay_account
parent
cc30ca48af
commit
3d7c97214f
|
@ -209,8 +209,6 @@ class User(Base):
|
||||||
else:
|
else:
|
||||||
self.marseybux += amount
|
self.marseybux += amount
|
||||||
|
|
||||||
g.db.flush()
|
|
||||||
|
|
||||||
|
|
||||||
def charge_account(self, currency, amount, **kwargs):
|
def charge_account(self, currency, amount, **kwargs):
|
||||||
in_db = g.db.query(User).filter(User.id == self.id).with_for_update().one()
|
in_db = g.db.query(User).filter(User.id == self.id).with_for_update().one()
|
||||||
|
|
Loading…
Reference in New Issue