Skip to content
Snippets Groups Projects
Commit 347494c0 authored by Fabien Pinckaers's avatar Fabien Pinckaers
Browse files

[FIX] gamification: avoid sending blank emails

parent 2639d634
Branches
Tags
No related merge requests found
......@@ -505,11 +505,6 @@ class Challenge(models.Model):
goals = Goals.search(domain, order="completeness desc, current desc")
for ranking, goal in enumerate(goals):
# bail immediately if any goal of the challenge hasn't been
# reached
if goal.state != 'reached':
return []
if user and goal.user_id == user:
line_data['own_goal_id'] = goal.id
elif restrict_top and ranking > restrict_top:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment