From 7f5cef2cd2150e7afcf4854943be0e2203c64746 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 24 Nov 2021 00:49:11 +0200 Subject: [PATCH] fdsfsd --- files/routes/awards.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/routes/awards.py b/files/routes/awards.py index 98e217330..247c2a88f 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -557,6 +557,8 @@ def award_post(pid, v): if author.marseyawarded: author.marseyawarded += 86400 else: author.marseyawarded = time.time() + 86400 elif kind == "pizzashill": + if author.bird: + return {"error": "This user is the under the effect of a conflicting award: Bird Site award."}, 404 if author.longpost: author.longpost += 86400 else: author.longpost = time.time() + 86400 send_notification(IDIO_ID, f"@{v.username} used {kind} award on {request.host_url}{post.shortlink}") @@ -702,6 +704,8 @@ def award_comment(cid, v): if author.marseyawarded: author.marseyawarded += 86400 else: author.marseyawarded = time.time() + 86400 elif kind == "pizzashill": + if author.bird: + return {"error": "This user is the under the effect of a conflicting award: Bird Site award."}, 404 if author.longpost: author.longpost += 86400 else: author.longpost = time.time() + 86400 send_notification(IDIO_ID, f"@{v.username} used {kind} award on {request.host_url}{c.shortlink}")