Skip to content

Commit

Permalink
don't award emojis for empty dojos
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Dec 11, 2024
1 parent d73626d commit 6f8f1af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo_plugin/utils/awards.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_user_emojis(user):
emoji = dojo.award and dojo.award.get('emoji', None)
if not emoji:
continue
if dojo.completed(user):
if d.challenges and dojo.completed(user):
emojis.append((emoji, dojo.name, dojo.hex_dojo_id))
return emojis

Expand Down

0 comments on commit 6f8f1af

Please sign in to comment.