aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Gruin2017-10-01 11:38:41 +0200
committerAlban Gruin2017-10-01 11:38:41 +0200
commitf7016ebb865a5b334aff2d84ab009bb491921e54 (patch)
tree2d98ab89a82dd546fdb4f86a7f0120236ab51689
parentd015314d3ccbb35f52a28698444de8ff60002e10 (diff)
Suppression des variables inutiles
-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")