Skip to content
Snippets Groups Projects
Verified Commit 02ab2418 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

FIx off-by-one error.

parent f153bf36
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ def lesson(request: HttpRequest, year: Optional[int] = None, week: Optional[int]
# Iterate over personal notes and carry changed absences to following lessons
for instance in instances:
instance.person.mark_absent(
wanted_week[lesson_period.period.weekday],
wanted_week[lesson_period.period.weekday-1],
lesson_period.period.period+1,
instance.absent,
instance.excused
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment