diff --git a/biscuit/apps/alsijil/views.py b/biscuit/apps/alsijil/views.py index 3a521d6958d38bce192f6dd6d92804df22d241fe..5482cf9d62c313244854609eb612ba0af0e77b5d 100644 --- a/biscuit/apps/alsijil/views.py +++ b/biscuit/apps/alsijil/views.py @@ -225,9 +225,9 @@ def manage_absence(request: HttpRequest) -> HttpResponse: # Mark person as absent 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 - 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.save()