From d2fe3a631da46fa31af809528bdbfbae575d9bb9 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 16 Jun 2023 05:08:08 +0300 Subject: [PATCH] fix unban awards --- files/routes/awards.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index e97d48781..609ac4d09 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -260,7 +260,8 @@ def award_thing(v, thing_type, id): author.ban_reason = ban_reason send_repeatable_notification(author.id, f"Your account has been banned for **yet another day** for [{link_text_in_notif}]({link}). Seriously man?") elif kind == "unban": - if not author.is_suspended or not author.unban_utc or time.time() > author.unban_utc: abort(403) + if not author.is_suspended or not author.unban_utc: + abort(403) if author.unban_utc - time.time() > 86400: author.unban_utc -= 86400