From 028d420eafce5d196c02741bc9e5a333cd161076 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 21 Oct 2021 23:08:51 +0200 Subject: [PATCH] not --- files/classes/user.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/classes/user.py b/files/classes/user.py index 80552d217..1d6a9926b 100755 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -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()))