aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/views.py b/views.py
index d34fadd..4fc0147 100644
--- a/views.py
+++ b/views.py
@@ -34,9 +34,9 @@ def mention_list(request, year_slug):
return render(request, "index.html", {"year": year, "elements": timetables})
def group_list_common(request, timetable, groups):
- year, week = get_current_week()
- start, _ = get_week(year, week)
+ start, _ = get_week(*get_current_week())
end = start + datetime.timedelta(weeks=4)
+
groups_weeks = Course.objects.get_weeks(begin__gte=start, begin__lt=end, timetable=timetable) \
.values("groups__mention", "groups__subgroup",
"groups__td", "groups__tp", "year", "week")