From f7016ebb865a5b334aff2d84ab009bb491921e54 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sun, 1 Oct 2017 11:38:41 +0200 Subject: Suppression des variables inutiles --- views.py | 4 ++-- 1 file 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") -- cgit v1.2.1