Skip to content
Snippets Groups Projects
Commit 5992b3e2 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-2809: minor bug fix

parent 1a924244
No related branches found
No related tags found
No related merge requests found
......@@ -331,7 +331,7 @@ class Scheduler:
status__value__in=(models.SchedulingUnitStatus.Choices.SCHEDULED.value,
models.SchedulingUnitStatus.Choices.OBSERVING.value)).filter(
on_sky_stop_time__gte=lower_bound).filter(
on_sky_stop_time__lte=upper_bound)
on_sky_stop_time__lte=lower_bound + timedelta(hours=24))
if blocking_units.exists():
# advance beyond the blocking unit(s)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment