not
This commit is contained in:
parent
cbe5e47547
commit
4e815a3ad1
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,7 @@ import pyotp
|
||||||
from files.helpers.discord import remove_user
|
from files.helpers.discord import remove_user
|
||||||
from files.helpers.images import *
|
from files.helpers.images import *
|
||||||
from files.helpers.const import *
|
from files.helpers.const import *
|
||||||
|
from files.helpers.notifications import send_notification
|
||||||
from .alts import Alt
|
from .alts import Alt
|
||||||
from .submission import SaveRelationship
|
from .submission import SaveRelationship
|
||||||
from .comment import Notification
|
from .comment import Notification
|
||||||
|
@ -455,6 +456,7 @@ class User(Base):
|
||||||
self.unban_utc = 0
|
self.unban_utc = 0
|
||||||
self.ban_evade = 0
|
self.ban_evade = 0
|
||||||
g.db.add(self)
|
g.db.add(self)
|
||||||
|
send_notification(NOTIFICATIONS_ACCOUNT, self, "Your ban has expired!")
|
||||||
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()))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue