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

Merge branch 'master' of edugit.org:Teckids/BiscuIT/BiscuIT-App-Alsijil

parents ee380d9c 86ada8fa
No related branches found
No related tags found
No related merge requests found
...@@ -225,9 +225,9 @@ def manage_absence(request: HttpRequest) -> HttpResponse: ...@@ -225,9 +225,9 @@ def manage_absence(request: HttpRequest) -> HttpResponse:
# Mark person as absent # Mark person as absent
delta = end_date - start_date delta = end_date - start_date
for i in range(delta.days): for i in range(delta.days+1):
starting_period = starting_lesson if i == 0 else 0 starting_period = starting_lesson if i == 0 else 0
day = start_date + timedelta(days=1) day = start_date + timedelta(days=i)
person.mark_absent(day, starting_period=starting_period, absent=absent, excused=excused, remarks=remarks) person.mark_absent(day, starting_period=starting_period, absent=absent, excused=excused, remarks=remarks)
person.save() person.save()
......
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