This commit is contained in:
Aevann1 2022-01-29 04:48:34 +02:00
parent 25736c5eb1
commit aeff6bc232
4 changed files with 11 additions and 1 deletions

View file

@ -168,6 +168,13 @@ def front_all(v):
posts = get_posts(ids, v=v)
if v:
if v.patron_utc and v.patron_utc < time.time():
v.patron = 0
v.patron_utc = 0
send_repeatable_notification(v.id, "Your paypig status has expired!")
g.db.add(v)
g.db.commit()
if v.unban_utc and v.unban_utc < time.time():
v.is_banned = 0
v.unban_utc = 0