From aea39c3c8739151b228b56c0d20ecf7f77c4779c Mon Sep 17 00:00:00 2001 From: Felix Blanke <info@fblanke.de> Date: Wed, 29 May 2024 19:51:19 +0200 Subject: [PATCH] Only export preset room if ak is fixed --- AKModel/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AKModel/models.py b/AKModel/models.py index 3f5a0f4c..86fa8e15 100644 --- a/AKModel/models.py +++ b/AKModel/models.py @@ -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"]): -- GitLab