diff --git a/AKModel/models.py b/AKModel/models.py index b2528b10d63084c23102be76606772edb37418b5..ddc711f3e9ff30633c62c34875bc471792bc105b 100644 --- a/AKModel/models.py +++ b/AKModel/models.py @@ -991,7 +991,7 @@ class AKSlot(models.Model): # self.slots_in_an_hour is set in AKJSONExportView data = { "id": str(self.pk), - "duration": int(self.duration * self.slots_in_an_hour), + "duration": round(self.duration * self.slots_in_an_hour), "properties": {}, "room_constraints": [constraint.name for constraint in self.ak.requirements.all()],