remove unnecessary g.db.flush()

master
Aevann 2023-03-04 17:54:40 +02:00
parent 055d4fce98
commit 747af298c2
1 changed files with 0 additions and 1 deletions

View File

@ -525,7 +525,6 @@ class User(Base):
@lazy
def has_badge(self, badge_id):
g.db.flush()
return g.db.query(Badge).filter_by(user_id=self.id, badge_id=badge_id).one_or_none()
def verifyPass(self, password):