valide les double mais preirite et interval pas ok

This commit is contained in:
2025-12-10 18:04:10 -05:00
parent 9db677e313
commit 5873ab4900
6 changed files with 44 additions and 99 deletions

View File

@ -72,6 +72,9 @@ def resolve_priority(
if new_priority > old_priority:
return 0, "LOWER_PRIORITY", det_id, None
# Nouvelle lecture plus prioritaire → remplacer
if new_priority < old_priority:
@ -89,5 +92,6 @@ def resolve_priority(
forced_tour = old_tour
return 1, None, None, forced_tour
# Même priorité → rejet
return 0, "EQUAL_PRIORITY", det_id, None
return 0, "EQUAL_PRIORITY", det_id, None