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

Only add constr if event is not covered

parent cf2637d2
No related branches found
No related tags found
1 merge request!12Fix: export of fixed ak slots
Pipeline #269726 passed
......@@ -945,7 +945,7 @@ class AKSlot(models.Model):
if self.fixed and self.start is not None:
ak_time_constraints = [f"fixed-akslot-{self.id}"]
elif Availability.is_event_covered(self.event, self.ak.availabilities.all()):
elif not Availability.is_event_covered(self.event, self.ak.availabilities.all()):
ak_time_constraints = [f"availability-ak-{self.ak.pk}"]
else:
ak_time_constraints = []
......
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