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

Only export preset room if ak is fixed

parent d92c87e1
Branches
No related tags found
6 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,!237Draft: add tests on json export,!235Merge fork for interoperability of KoMa solver
......@@ -736,7 +736,7 @@ class AKSlot(models.Model):
for owner in self.ak.owners.all():
data["time_constraints"].extend(_owner_time_constraints(owner))
if self.room is not None:
if self.room is not None and self.fixed:
data["room_constraints"].append(f"availability-room-{self.room.pk}")
if not any(constr.startswith("proxy") for constr in data["room_constraints"]):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment