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
5 merge requests!262[WIP] compatibility with koma solver import/export,!261[WIP] compatibility with koma solver import/export,!260[WIP] import/export merge,!259Add view to clear schedule,!235Merge fork for interoperability of KoMa solver
This commit is part of merge request !235. Comments created here will be created in the context of that merge request.
......@@ -134,13 +134,19 @@ class AKJSONExportView(AdminViewMixin, FilterByEventSlugMixin, ListView):
time_constraints.append("resolution")
# 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
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
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
time_constraints.extend([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment