Skip to content
Snippets Groups Projects

Refactor main

Merged Felix Blanke requested to merge refactor-main into main
1 unresolved thread
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -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()],
Loading