From cca9db2307e9b1a6176b36bd467e2388026fd84d Mon Sep 17 00:00:00 2001
From: Jonathan Weth <git@jonathanweth.de>
Date: Thu, 20 Jul 2023 22:05:00 +0200
Subject: [PATCH] Reformat and fix lint

---
 aleksis/apps/alsijil/model_extensions.py | 2 +-
 aleksis/apps/alsijil/views.py            | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/aleksis/apps/alsijil/model_extensions.py b/aleksis/apps/alsijil/model_extensions.py
index 8a92d6671..abbedd709 100644
--- a/aleksis/apps/alsijil/model_extensions.py
+++ b/aleksis/apps/alsijil/model_extensions.py
@@ -52,7 +52,7 @@ def mark_absent(
     to_period: Optional[int] = None,
     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`
     the person participates in on the selected day and marks them as absent/excused.
diff --git a/aleksis/apps/alsijil/views.py b/aleksis/apps/alsijil/views.py
index 589f194fc..3a343c899 100644
--- a/aleksis/apps/alsijil/views.py
+++ b/aleksis/apps/alsijil/views.py
@@ -886,9 +886,7 @@ def overview_person(request: HttpRequest, id_: Optional[int] = None) -> HttpResp
         stats = []
         for school_term in school_terms:
             stat = {}
-            personal_notes = PersonalNote.objects.filter(
-                person=person,
-            ).filter(
+            personal_notes = PersonalNote.objects.filter(person=person,).filter(
                 Q(lesson_period__lesson__validity__school_term=school_term)
                 | Q(extra_lesson__school_term=school_term)
                 | Q(event__school_term=school_term)
-- 
GitLab