diff options
-rw-r--r-- | views.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -36,7 +36,9 @@ def index(request): def timetable(request, group_slug, year=None, week=None): if year is None or week is None: - year, week, _ = timezone.now().isocalendar() + year, week, day = timezone.now().isocalendar() + if day >= 6: + year, week, _ = (timezone.now() + datetime.timedelta(weeks=1)).isocalendar() start, end = get_week(int(year), int(week)) |