Strategy change new rule (Part2 - Fix2)

This commit is contained in:
2026-05-05 23:04:16 +01:00
parent 90a92b8184
commit 51864267d7
8 changed files with 6 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1560,7 +1560,7 @@ def main():
# ║ Limite le tableau aux organisations aux rangs 33 et 34 ║
# ║ (indices 32 et 33, après tri décroissant par patients_count) ║
# ╚══════════════════════════════════════════════════════════════════╝
organizations_list = [org for i, org in enumerate(organizations_list) if i in (32, 33)]
# organizations_list = [org for i, org in enumerate(organizations_list) if i in (32, 33)]
# ══════════════════════════════════════════════════════════════════
number_of_organizations = len(organizations_list)

View File

@@ -754,7 +754,11 @@ def _apply_value_replacement(value, replacements):
return value
for value_before, value_after in replacements:
if value == value_before: # Strict equality
# bool est une sous-classe de int en Python (True == 1, False == 0),
# donc on bloque le match si l'un est bool et pas l'autre.
if isinstance(value, bool) != isinstance(value_before, bool):
continue
if value == value_before:
return value_after
return value # No match, return original