sdf
This commit is contained in:
parent
3fc178fdb0
commit
635e7ca228
5 changed files with 8 additions and 2 deletions
|
@ -452,6 +452,7 @@ class User(Base):
|
|||
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 (self.is_banned and (not self.unban_utc or self.unban_utc > time.time()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue