From fd6adb0e83d9fece3feabbded3af9677700393f0 Mon Sep 17 00:00:00 2001 From: Felix Blanke <info@fblanke.de> Date: Thu, 26 Dec 2024 19:29:59 +0100 Subject: [PATCH] Use round instead of int to calc duration --- AKModel/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AKModel/models.py b/AKModel/models.py index 08e3d371..494e5911 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()], -- GitLab