remotes/1693045480750635534/spooky-22
Aevann1 2021-10-15 17:50:13 +02:00
parent 8966e3db71
commit b7a13b4146
1 changed files with 3 additions and 1 deletions

View File

@ -496,9 +496,11 @@ class User(Base):
@property
@lazy
def is_suspended(self):
if self.unban_utc and self.unban_utc > time.time():
if self.unban_utc and self.unban_utc < time.time():
self.is_banned = 0
self.unban_utc = 0
g.db.add(self)
g.db.commit()
return (self.is_banned and (not self.unban_utc or self.unban_utc > time.time()))