From 41b7b1298eb2945e58a1e3fecb2ecc3a357d4c12 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 27 Jun 2022 06:42:39 +0200 Subject: [PATCH] add logic for 100 marseys badge --- files/routes/comments.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index a1013a62c..c248590f5 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -283,7 +283,9 @@ def api_comment(v): all_by_author = g.db.query(Marsey).filter_by(author_id=user.id).count() # 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) else: badge_grant(badge_id=17, user=user)