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

Use round instead of int to calc duration

parent cf082b61
Branches
No related tags found
2 merge requests!17Add view to clear schedule,!5Refactor main
...@@ -936,7 +936,7 @@ class AKSlot(models.Model): ...@@ -936,7 +936,7 @@ class AKSlot(models.Model):
# self.slots_in_an_hour is set in AKJSONExportView # self.slots_in_an_hour is set in AKJSONExportView
data = { data = {
"id": str(self.pk), "id": str(self.pk),
"duration": int(self.duration * self.slots_in_an_hour), "duration": round(self.duration * self.slots_in_an_hour),
"properties": {}, "properties": {},
"room_constraints": [constraint.name "room_constraints": [constraint.name
for constraint in self.ak.requirements.all()], for constraint in self.ak.requirements.all()],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment