From 6f8f1afc639ebf8973392175db3556c5fd4ae7e8 Mon Sep 17 00:00:00 2001 From: Yan Date: Wed, 11 Dec 2024 14:31:20 -0700 Subject: [PATCH] don't award emojis for empty dojos --- dojo_plugin/utils/awards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo_plugin/utils/awards.py b/dojo_plugin/utils/awards.py index e4c76271..f386b3cb 100644 --- a/dojo_plugin/utils/awards.py +++ b/dojo_plugin/utils/awards.py @@ -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