From a82a2c1f7424eac6de56d56f076c784a2952a36c Mon Sep 17 00:00:00 2001
From: Jorrit Schaap <schaap@astron.nl>
Date: Mon, 21 Nov 2022 13:27:29 +0100
Subject: [PATCH] TMSS-2017: fix

---
 SAS/TMSS/backend/services/scheduling/lib/constraints.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SAS/TMSS/backend/services/scheduling/lib/constraints.py b/SAS/TMSS/backend/services/scheduling/lib/constraints.py
index 54fb0045ee8..4155c51a7cc 100644
--- a/SAS/TMSS/backend/services/scheduling/lib/constraints.py
+++ b/SAS/TMSS/backend/services/scheduling/lib/constraints.py
@@ -1498,7 +1498,7 @@ def compute_individual_and_weighted_scores(scheduling_units: [models.SchedulingU
     for i, su in enumerate(scheduling_units):
         try:
             scored_su = compute_scheduling_unit_scores(su, lower_bound, upper_bound, gridder)
-            if scored_su is not None and scored_su.start_time is not None and scored_su.start_time >= lower_bound and scored_su.start_time < upper_bound:
+            if scored_su is not None and scored_su.start_time is not None:
                 scored_scheduling_units.append(scored_su)
 
             logger.info("compute_individual_and_weighted_scores: checked unit [%d/%d] %.1f%% id=%d",
-- 
GitLab