aboutsummaryrefslogtreecommitdiff
path: root/views.py
diff options
context:
space:
mode:
authorAlban Gruin2017-11-25 14:22:03 +0100
committerAlban Gruin2017-11-25 14:22:03 +0100
commit621f5d7f0d28f7252e1ff0c0f1286824fa55c33e (patch)
treebc75bdb59ad82e960578b585af83c6f06882cdbe /views.py
parentd9e0cba8c24978150e66b9ccd7ea67aa50a5f22d (diff)
On ne compare plus les id des emplois du temps dans corresponds_to()
car dans le seul appel « utile », les arguments passés font forcément partie du même edt. Changement effectué pour des questions de performance. Correction des tests.
Diffstat (limited to 'views.py')
-rw-r--r--views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/views.py b/views.py
index 97d3048..7bc5641 100644
--- a/views.py
+++ b/views.py
@@ -45,7 +45,7 @@ def group_list_common(request, timetable, groups):
for group in groups:
for group_week in groups_weeks:
- if group.corresponds_to(timetable.id, group_week["groups__mention"],
+ if group.corresponds_to(group_week["groups__mention"],
group_week["groups__subgroup"]):
if not hasattr(group, "weeks"):
group.weeks = []