Skip to content

Commit

Permalink
Fix getTimeGroups
Browse files Browse the repository at this point in the history
  • Loading branch information
willgearty authored Jun 30, 2023
1 parent c8c5cfc commit 768ad5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp/esp/program/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ def getTimeGroups(self, types=None, exclude_types=None):
time_groups = []

w_group = timeslots.filter(group__isnull=False)
groups = sorted(list(w_group.values_list('group', flat=True)))
groups = sorted(set(w_group.values_list('group', flat=True)))

for grp in groups:
time_groups.append(list(w_group.filter(group=grp)))
Expand Down

0 comments on commit 768ad5f

Please sign in to comment.