From 71759e6afa5e591ff369715a87467aa7cbb91ef2 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Tue, 11 Oct 2022 09:55:24 -0700 Subject: [PATCH] 400 -> 409 --- files/routes/awards.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index a7bdce2c7..386c846ca 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -250,7 +250,7 @@ def award_thing(v, thing_type, id): g.db.add(thing) elif kind == "agendaposter" and not (author.agendaposter and author.agendaposter == 0): if author.marseyawarded: - abort(400, "This user is under the effect of a conflicting award: Marsey award.") + abort(409, "This user is under the effect of a conflicting award: Marsey award.") if author.agendaposter and time.time() < author.agendaposter: author.agendaposter += 86400 else: author.agendaposter = int(time.time()) + 86400 @@ -280,13 +280,13 @@ def award_thing(v, thing_type, id): badge_grant(user=author, badge_id=98) elif kind == "pizzashill": if author.bird: - abort(400, "This user is under the effect of a conflicting award: Bird Site award.") + abort(409, "This user is under the effect of a conflicting award: Bird Site award.") if author.longpost: author.longpost += 86400 else: author.longpost = int(time.time()) + 86400 badge_grant(user=author, badge_id=97) elif kind == "bird": if author.longpost: - abort(400, "This user is under the effect of a conflicting award: Pizzashill award.") + abort(409, "This user is under the effect of a conflicting award: Pizzashill award.") if author.bird: author.bird += 86400 else: author.bird = int(time.time()) + 86400 badge_grant(user=author, badge_id=95)