forked from MarseyWorld/MarseyWorld
add logic for 100 marseys badge
parent
5661871255
commit
41b7b1298e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue