Skip to content
Snippets Groups Projects

Do not create personal notes for cancelled lesson periods in mark_absent

All threads resolved!
1 file
+ 1
2
Compare changes
  • Side-by-side
  • Inline
@@ -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(
Loading