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
No related branches found
No related tags found
1 merge request!5Refactor main
This commit is part of merge request !5. Comments created here will be created in the context of that merge request.
......@@ -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()],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment