please reproduce
This commit is contained in:
parent
6f87871c63
commit
458023295c
3 changed files with 9 additions and 6 deletions
|
@ -83,6 +83,8 @@ class User(Base):
|
|||
oldreddit = Column(Boolean, default=True)
|
||||
teddit = Column(Boolean)
|
||||
nitter = Column(Boolean)
|
||||
grinch = Column(Boolean)
|
||||
grincheffect = Column(Boolean)
|
||||
mute = Column(Boolean)
|
||||
unmutable = Column(Boolean)
|
||||
eye = Column(Boolean)
|
||||
|
@ -285,11 +287,6 @@ class User(Base):
|
|||
def has_badge(self, badge_id):
|
||||
return g.db.query(Badge).filter_by(user_id=self.id, badge_id=badge_id).first()
|
||||
|
||||
@property
|
||||
@lazy
|
||||
def grinch(self):
|
||||
return self.has_badge(91)
|
||||
|
||||
def hash_password(self, password):
|
||||
return generate_password_hash(
|
||||
password, method='pbkdf2:sha512', salt_length=8)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue