fix 500 error

master
Aevann 2023-06-07 08:33:47 +03:00
parent 63ac985110
commit 0cdaf83931
1 changed files with 2 additions and 2 deletions

View File

@ -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)