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

Use round instead of int to calc duration

parent 32fda941
No related branches found
No related tags found
1 merge request!268Merge fork for interoperability of KoMa solver
...@@ -991,7 +991,7 @@ class AKSlot(models.Model): ...@@ -991,7 +991,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