dfs
This commit is contained in:
parent
f626bc892f
commit
ad2323c858
4 changed files with 18 additions and 13 deletions
|
@ -529,13 +529,6 @@ class User(Base):
|
|||
|
||||
@property
|
||||
def is_suspended(self):
|
||||
if self.unban_utc and self.unban_utc < time.time():
|
||||
self.is_banned = 0
|
||||
self.unban_utc = 0
|
||||
self.ban_evade = 0
|
||||
g.db.add(self)
|
||||
g.db.commit()
|
||||
return False
|
||||
return (self.is_banned and (self.unban_utc == 0 or self.unban_utc > time.time()))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue