diff options
author | Alban Gruin | 2017-10-01 11:38:41 +0200 |
---|---|---|
committer | Alban Gruin | 2017-10-01 11:38:41 +0200 |
commit | f7016ebb865a5b334aff2d84ab009bb491921e54 (patch) | |
tree | 2d98ab89a82dd546fdb4f86a7f0120236ab51689 | |
parent | d015314d3ccbb35f52a28698444de8ff60002e10 (diff) |
Suppression des variables inutiles
-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") |