diff --git a/AKModel/models.py b/AKModel/models.py index 208974b82cd8c28033c17bda4334e4786bb6199b..173c27459f09f085b3fd4216876ecce740736b6c 100644 --- a/AKModel/models.py +++ b/AKModel/models.py @@ -385,9 +385,9 @@ class Event(models.Model): def discretize_timeslots(self, *, slots_in_an_hour: float = 1.0) -> Iterable[TimeslotBlock]: if DefaultSlot.objects.filter(event=self).exists(): # discretize default slots if they exists - yield from merge_blocks(self.default_time_slots(slots_in_an_hour=SLOTS_IN_AN_HOUR)) + yield from merge_blocks(self.default_time_slots(slots_in_an_hour=slots_in_an_hour)) else: - yield from self.uniform_time_slots(slots_in_an_hour=SLOTS_IN_AN_HOUR) + yield from self.uniform_time_slots(slots_in_an_hour=slots_in_an_hour) def schedule_from_json(self, schedule: str) -> None: """Load AK schedule from a json string.