Skip to content

Commit

Permalink
Fix team.members should be team.team_members to keep track of unregis…
Browse files Browse the repository at this point in the history
…tered members
  • Loading branch information
hashshura committed Jan 3, 2021
1 parent 5e2d771 commit 4ebedb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arkav/competition/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def has_completed_active_stage(self):
active_stage_completed_task_count = (
self.task_responses.filter(task__stage=self.active_stage, status=TaskResponse.COMPLETED).count() +
self.user_task_responses.filter(task__stage=self.active_stage, status=TaskResponse.COMPLETED)
.count() // self.members.count()
.count() // self.team_members.count()
)
return active_stage_task_count == active_stage_completed_task_count

Expand Down

0 comments on commit 4ebedb5

Please sign in to comment.