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

Fix timetable builder: Return None if person has no lessons

parent 287ea230
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,9 @@ def build_timetable(
is_person = True
type_ = obj.timetable_type
if type_ is None:
return None
# Get matching holidays
if is_person:
holiday = Holiday.on_day(date_ref)
......
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