remotes/1693045480750635534/spooky-22
Aevann1 2021-10-21 23:08:51 +02:00
parent f607a1384e
commit 028d420eaf
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import pyotp
from files.helpers.discord import remove_user
from files.helpers.images import *
from files.helpers.const import *
from files.helpers.notifications import send_notification
from .alts import Alt
from .submission import SaveRelationship
from .comment import Notification
@ -455,6 +456,7 @@ class User(Base):
self.unban_utc = 0
self.ban_evade = 0
g.db.add(self)
send_notification(NOTIFICATIONS_ACCOUNT, self, "Your ban has expired!")
g.db.commit()
return (self.is_banned and (not self.unban_utc or self.unban_utc > time.time()))