Skip to content
Snippets Groups Projects
Commit 26f432ad authored by Felix Blanke's avatar Felix Blanke
Browse files

Add generated constraints to list

parent 205436f8
No related branches found
No related tags found
1 merge request!12Fix: export of fixed ak slots
Pipeline #269728 passed
...@@ -134,13 +134,19 @@ class AKJSONExportView(AdminViewMixin, FilterByEventSlugMixin, ListView): ...@@ -134,13 +134,19 @@ class AKJSONExportView(AdminViewMixin, FilterByEventSlugMixin, ListView):
time_constraints.append("resolution") time_constraints.append("resolution")
# add fulfilled time constraints for all AKs that cannot happen during full event # add fulfilled time constraints for all AKs that cannot happen during full event
self._generate_time_constraints("ak", ak_availabilities, timeslot.avail) time_constraints.extend(
self._generate_time_constraints("ak", ak_availabilities, timeslot.avail)
)
# add fulfilled time constraints for all persons that are not available for full event # add fulfilled time constraints for all persons that are not available for full event
self._generate_time_constraints("person", person_availabilities, timeslot.avail) time_constraints.extend(
self._generate_time_constraints("person", person_availabilities, timeslot.avail)
)
# add fulfilled time constraints for all rooms that are not available for full event # add fulfilled time constraints for all rooms that are not available for full event
self._generate_time_constraints("room", room_availabilities, timeslot.avail) time_constraints.extend(
self._generate_time_constraints("room", room_availabilities, timeslot.avail)
)
# add fulfilled time constraints for all AKSlots fixed to happen during timeslot # add fulfilled time constraints for all AKSlots fixed to happen during timeslot
time_constraints.extend([ time_constraints.extend([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment