Skip to content

Commit

Permalink
Group tasks were still including archived ones.
Browse files Browse the repository at this point in the history
  • Loading branch information
profcturner committed Jun 18, 2016
1 parent 9ccaaca commit c08f17a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loads/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def get_all_tasks(self):

# And those assigned against the group
groups = Group.objects.all().filter(user=self.user)
group_tasks = Task.objects.all().filter(groups__in=groups).distinct().order_by('deadline')
group_tasks = Task.objects.all().filter(groups__in=groups).exclude(archive=True).distinct().order_by('deadline')

# Combine them
all_tasks = user_tasks | group_tasks
Expand Down

0 comments on commit c08f17a

Please sign in to comment.