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

Tweak eps

parent e8412515
No related branches found
No related tags found
1 merge request!8Avoid setting the slot duration at import
Pipeline #269233 passed
...@@ -415,7 +415,7 @@ class Event(models.Model): ...@@ -415,7 +415,7 @@ class Event(models.Model):
end_timeslot = timeslot_dict[max(scheduled_slot["timeslot_ids"])].avail end_timeslot = timeslot_dict[max(scheduled_slot["timeslot_ids"])].avail
solver_duration = (end_timeslot.end - start_timeslot.start).total_seconds() / 3600.0 solver_duration = (end_timeslot.end - start_timeslot.start).total_seconds() / 3600.0
if solver_duration + 1e-4 < slot.duration: if solver_duration + 2e-4 < slot.duration:
raise ValueError( raise ValueError(
_( _(
"Duration of AK {ak_name} assigned by solver ({solver_duration} hours) " "Duration of AK {ak_name} assigned by solver ({solver_duration} hours) "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment