From 0cdaf839313c12948570245c0be0f6c63af5ce24 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 7 Jun 2023 08:33:47 +0300 Subject: [PATCH] fix 500 error --- files/routes/asset_submissions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/asset_submissions.py b/files/routes/asset_submissions.py index 8ed1869d3..d1d3cc768 100644 --- a/files/routes/asset_submissions.py +++ b/files/routes/asset_submissions.py @@ -153,9 +153,9 @@ def approve_emoji(v, name): if emoji.kind == "Marsey": all_by_author = g.db.query(Emoji).filter_by(kind="Marsey", author_id=author.id).count() - if count >= 100: + if all_by_author >= 100: badge_grant(badge_id=143, user=author) - elif count >= 10: + elif all_by_author >= 10: badge_grant(badge_id=16, user=author) else: badge_grant(badge_id=17, user=author)