Skip to content
Snippets Groups Projects
Commit 715d2cc6 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: ensure that we pass the proper types to generate_program_entries

Mapping keys in filter_data are guaranteed to be defined but might be
None for boolean filters. We want to ensure that we actually pass
booleans to generate_program_entries.
parent 2fa205c8
No related branches found
No related tags found
1 merge request!57Incorporate feedback for virtual timeslots
......@@ -326,8 +326,8 @@ class VirtualTimeslotFilterSet(filters.FilterSet):
queryset,
start=filter_data["start"],
end=filter_data["end"],
include_virtual=filter_data["include_virtual"],
cut_at_range_boundaries=filter_data["cut_at_range_boundaries"],
include_virtual=bool(filter_data["include_virtual"]),
cut_at_range_boundaries=bool(filter_data["cut_at_range_boundaries"]),
)
)
......
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