diff --git a/AKModel/models.py b/AKModel/models.py index ae9abca44c05fcbd800bbbca118cc4a9ac445a02..d578645506693ab9e8560eb65fca4f774452860f 100644 --- a/AKModel/models.py +++ b/AKModel/models.py @@ -415,7 +415,7 @@ class Event(models.Model): end_timeslot = timeslot_dict[max(scheduled_slot["timeslot_ids"])].avail 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( _( "Duration of AK {ak_name} assigned by solver ({solver_duration} hours) "