Skip to content
Snippets Groups Projects
Verified Commit cca9db23 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Reformat and fix lint

parent a25dad8b
No related branches found
No related tags found
1 merge request!334Update pyproject.toml
...@@ -52,7 +52,7 @@ def mark_absent( ...@@ -52,7 +52,7 @@ def mark_absent(
to_period: Optional[int] = None, to_period: Optional[int] = None,
dry_run: bool = False, dry_run: bool = False,
): ):
"""Mark a person absent for all lessons in a day, optionally starting with a selected period number. """Mark a person absent for all lessons in a day, optionally starting with a period number.
This function creates `PersonalNote` objects for every `LessonPeriod` and `ExtraLesson` This function creates `PersonalNote` objects for every `LessonPeriod` and `ExtraLesson`
the person participates in on the selected day and marks them as absent/excused. the person participates in on the selected day and marks them as absent/excused.
......
...@@ -886,9 +886,7 @@ def overview_person(request: HttpRequest, id_: Optional[int] = None) -> HttpResp ...@@ -886,9 +886,7 @@ def overview_person(request: HttpRequest, id_: Optional[int] = None) -> HttpResp
stats = [] stats = []
for school_term in school_terms: for school_term in school_terms:
stat = {} stat = {}
personal_notes = PersonalNote.objects.filter( personal_notes = PersonalNote.objects.filter(person=person,).filter(
person=person,
).filter(
Q(lesson_period__lesson__validity__school_term=school_term) Q(lesson_period__lesson__validity__school_term=school_term)
| Q(extra_lesson__school_term=school_term) | Q(extra_lesson__school_term=school_term)
| Q(event__school_term=school_term) | Q(event__school_term=school_term)
......
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