forked from rDrama/rDrama
remove unnecessary g.db.flush()
parent
055d4fce98
commit
747af298c2
|
@ -525,7 +525,6 @@ class User(Base):
|
||||||
|
|
||||||
@lazy
|
@lazy
|
||||||
def has_badge(self, badge_id):
|
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()
|
return g.db.query(Badge).filter_by(user_id=self.id, badge_id=badge_id).one_or_none()
|
||||||
|
|
||||||
def verifyPass(self, password):
|
def verifyPass(self, password):
|
||||||
|
|
Loading…
Reference in New Issue