Strategy change new rule (Part2 - Fix2)
This commit is contained in:
BIN
config/Endobest_Dashboard_Config - Debug.xlsx
Normal file
BIN
config/Endobest_Dashboard_Config - Debug.xlsx
Normal file
Binary file not shown.
Binary file not shown.
BIN
config/eb_dashboard_extended_template - Debug.xlsx
Normal file
BIN
config/eb_dashboard_extended_template - Debug.xlsx
Normal file
Binary file not shown.
Binary file not shown.
BIN
config/eb_dashboard_extended_template_temp.xlsx
Normal file
BIN
config/eb_dashboard_extended_template_temp.xlsx
Normal file
Binary file not shown.
Binary file not shown.
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user