diff options
Diffstat (limited to 'views.py')
-rw-r--r-- | views.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -21,7 +21,7 @@ from django.http import Http404 from django.shortcuts import get_object_or_404, render from .models import Timetable, Group, Course, Year -from .utils import get_current_week, get_week, group_courses +from .utils import get_current_week, get_current_or_next_week, get_week, group_courses def index(request): years = Year.objects.order_by("name") @@ -64,7 +64,7 @@ def group_list(request, year_slug, timetable_slug): return group_list_common(request, timetable, groups) def timetable(request, year_slug, timetable_slug, group_slug, year=None, week=None): - current_year, current_week = get_current_week() + current_year, current_week = get_current_or_next_week() is_old_timetable = False if year is None or week is None: |