forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-10-18 18:11:39 +02:00
parent bc042d59cc
commit 50d9ba31c3
1 changed files with 5 additions and 5 deletions

View File

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