Skip to content
Snippets Groups Projects
Verified Commit 867dd048 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

fix: do not try to fill gaps if there are no timeslots

parent 883199b5
No related branches found
No related tags found
No related merge requests found
...@@ -847,6 +847,9 @@ def get_timerange_timeslot_entries( ...@@ -847,6 +847,9 @@ def get_timerange_timeslot_entries(
if not include_virtual: if not include_virtual:
return [make_timeslot_entry(timeslot=timeslot) for timeslot in timeslots] return [make_timeslot_entry(timeslot=timeslot) for timeslot in timeslots]
if timeslots is None:
return []
timeslot_entries = [] timeslot_entries = []
# gap before the first timeslot # gap before the first timeslot
first_timeslot = timeslots.first() first_timeslot = timeslots.first()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment