From a25960b1aa3698dc8836e62917d0ce75982879cf Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 6 Aug 2023 10:35:30 +0300 Subject: [PATCH] make sure ppl get their backlogged badges --- files/routes/asset_submissions.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/files/routes/asset_submissions.py b/files/routes/asset_submissions.py index 4973db11e..733c83bcc 100644 --- a/files/routes/asset_submissions.py +++ b/files/routes/asset_submissions.py @@ -176,14 +176,12 @@ def approve_emoji(v, name): all_by_author = g.db.query(Emoji).filter_by(kind="Wolf", author_id=author.id).count() if all_by_author >= 10: badge_grant(badge_id=111, user=author) - else: - badge_grant(badge_id=110, user=author) + badge_grant(badge_id=110, user=author) elif emoji.kind == "Platy": all_by_author = g.db.query(Emoji).filter_by(kind="Platy", author_id=author.id).count() if all_by_author >= 10: badge_grant(badge_id=113, user=author) - else: - badge_grant(badge_id=112, user=author) + badge_grant(badge_id=112, user=author) cache.delete("emojis")