diff options
Diffstat (limited to 'views.py')
-rw-r--r-- | views.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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") |