forked from rDrama/rDrama
not
parent
f607a1384e
commit
028d420eaf
|
@ -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…
Reference in New Issue