updating check_time_delta_violation_query_time_to_now: no longer ignoring events of the past (delta<=0)

This commit is contained in:
scopesorting 2023-11-28 16:48:20 +01:00
parent 287224eeb4
commit ecdf66bff2

View File

@ -99,9 +99,8 @@ class ValidationRuleBaseFunctions():
delta = self.time_logic.time_delta_from_now_to_tgt(tgt_time=query_time, unit="m")
# a violation occurs, when the delta (in minutes) exceeds the specified threshold of a participant
# to prevent past-events from triggering violations, negative values are ignored
# Violation, if 0 <= delta <= threshold
violation_state = (delta >= 0) and (delta<=threshold)
# Violation, if delta <= threshold
violation_state = (delta<=threshold)
return violation_state
def check_participants_agree_on_estimated_time(self, shipcall, query, df_times, applicable_shipcall_type)->bool: