diff --git a/config/Endobest_Dashboard_Config - Debug.xlsx b/config/Endobest_Dashboard_Config - Debug.xlsx new file mode 100644 index 0000000..daf02be Binary files /dev/null and b/config/Endobest_Dashboard_Config - Debug.xlsx differ diff --git a/config/Endobest_Dashboard_Config.xlsx b/config/Endobest_Dashboard_Config.xlsx index bfcc72d..90e652b 100644 Binary files a/config/Endobest_Dashboard_Config.xlsx and b/config/Endobest_Dashboard_Config.xlsx differ diff --git a/config/eb_dashboard_extended_template - Debug.xlsx b/config/eb_dashboard_extended_template - Debug.xlsx new file mode 100644 index 0000000..9785b79 Binary files /dev/null and b/config/eb_dashboard_extended_template - Debug.xlsx differ diff --git a/config/eb_dashboard_extended_template.xlsx b/config/eb_dashboard_extended_template.xlsx index be200b6..8834a88 100644 Binary files a/config/eb_dashboard_extended_template.xlsx and b/config/eb_dashboard_extended_template.xlsx differ diff --git a/config/eb_dashboard_extended_template_temp.xlsx b/config/eb_dashboard_extended_template_temp.xlsx new file mode 100644 index 0000000..ea7f702 Binary files /dev/null and b/config/eb_dashboard_extended_template_temp.xlsx differ diff --git a/config/~$Endobest_Dashboard_Config.xlsx b/config/~$Endobest_Dashboard_Config.xlsx deleted file mode 100644 index ae4e1b3..0000000 Binary files a/config/~$Endobest_Dashboard_Config.xlsx and /dev/null differ diff --git a/eb_dashboard.py b/eb_dashboard.py index 74d488e..cf6cebf 100644 --- a/eb_dashboard.py +++ b/eb_dashboard.py @@ -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) diff --git a/eb_dashboard_excel_export.py b/eb_dashboard_excel_export.py index 265ae72..7856755 100644 --- a/eb_dashboard_excel_export.py +++ b/eb_dashboard_excel_export.py @@ -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