diff --git a/AKModel/models.py b/AKModel/models.py index 05a5b28c36fc27303e29024494cc412e508c6c4c..ed2251271a8705c5059fd3ea9543e450dc7b26e0 100644 --- a/AKModel/models.py +++ b/AKModel/models.py @@ -410,7 +410,7 @@ class Event(models.Model): slot.start = start_timeslot.start solver_duration = (end_timeslot.end - start_timeslot.start).total_seconds() / 3600.0 - assert solver_duration >= slot.duration + assert solver_duration + 1e-4 >= slot.duration slot.save()