diff --git a/AKModel/models.py b/AKModel/models.py index 08e3d37145203d55edece66ade4c97c3e6e74d59..494e5911ce9bacea0f3da2045c93c3300a9b1960 100644 --- a/AKModel/models.py +++ b/AKModel/models.py @@ -936,7 +936,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()],