add logic for 100 marseys badge

master
Aevann1 2022-06-27 06:42:39 +02:00
parent 5661871255
commit 41b7b1298e
1 changed files with 3 additions and 1 deletions

View File

@ -283,7 +283,9 @@ def api_comment(v):
all_by_author = g.db.query(Marsey).filter_by(author_id=user.id).count() all_by_author = g.db.query(Marsey).filter_by(author_id=user.id).count()
# off-by-one: newly added marsey isn't counted # off-by-one: newly added marsey isn't counted
if all_by_author >= 9: if all_by_author >= 99:
badge_grant(badge_id=143, user=user)
elif all_by_author >= 9:
badge_grant(badge_id=16, user=user) badge_grant(badge_id=16, user=user)
else: else:
badge_grant(badge_id=17, user=user) badge_grant(badge_id=17, user=user)