fv
This commit is contained in:
parent
698a67c684
commit
00a59e869f
17 changed files with 75 additions and 71 deletions
|
@ -530,7 +530,7 @@ class User(Base):
|
|||
self.bannerurl = None
|
||||
|
||||
def ban(self, admin=None, reason=None, days=0):
|
||||
if days > 0:
|
||||
if days:
|
||||
ban_time = int(time.time()) + (days * 86400)
|
||||
self.unban_utc = ban_time
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue