Skip to content
Snippets Groups Projects
Commit 147b4304 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent 303617e9
No related branches found
No related tags found
1 merge request!81Do not create personal notes for cancelled lesson periods in mark_absent
Pipeline #3594 passed
......@@ -44,8 +44,7 @@ def mark_absent(
# Create and update all personal notes for the discovered lesson periods
for lesson_period in lesson_periods:
sub = lesson_period.get_substitution()
if sub:
if sub.is_cancelled:
if sub and sub.is_cancelled:
continue
personal_note, created = PersonalNote.objects.update_or_create(
......
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