aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/views.py b/views.py
index 4fc0147..bd93712 100644
--- a/views.py
+++ b/views.py
@@ -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: