From bc449d965c08b6258a2280eb053d25cac784df6a Mon Sep 17 00:00:00 2001 From: Felix Blanke <info@fblanke.de> Date: Wed, 22 Jan 2025 17:06:17 +0100 Subject: [PATCH] Tweak eps --- AKModel/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AKModel/models.py b/AKModel/models.py index ae9abca..d578645 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) " -- GitLab