forked from rDrama/rDrama
make sure ppl get their backlogged badges
parent
73bf0176b6
commit
a25960b1aa
|
@ -176,13 +176,11 @@ def approve_emoji(v, name):
|
||||||
all_by_author = g.db.query(Emoji).filter_by(kind="Wolf", author_id=author.id).count()
|
all_by_author = g.db.query(Emoji).filter_by(kind="Wolf", author_id=author.id).count()
|
||||||
if all_by_author >= 10:
|
if all_by_author >= 10:
|
||||||
badge_grant(badge_id=111, user=author)
|
badge_grant(badge_id=111, user=author)
|
||||||
else:
|
|
||||||
badge_grant(badge_id=110, user=author)
|
badge_grant(badge_id=110, user=author)
|
||||||
elif emoji.kind == "Platy":
|
elif emoji.kind == "Platy":
|
||||||
all_by_author = g.db.query(Emoji).filter_by(kind="Platy", author_id=author.id).count()
|
all_by_author = g.db.query(Emoji).filter_by(kind="Platy", author_id=author.id).count()
|
||||||
if all_by_author >= 10:
|
if all_by_author >= 10:
|
||||||
badge_grant(badge_id=113, user=author)
|
badge_grant(badge_id=113, user=author)
|
||||||
else:
|
|
||||||
badge_grant(badge_id=112, user=author)
|
badge_grant(badge_id=112, user=author)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue