Ajout de filtres et des donuts de catégorie #65

This commit is contained in:
Colin Maudry
2026-03-17 22:44:15 +01:00
parent 6c778882f9
commit c02fb995c5
4 changed files with 114 additions and 13 deletions
+7 -7
View File
@@ -697,13 +697,13 @@ def get_button_properties(height):
def get_enum_values_as_dict(column_name):
for column in data_schema:
if column == column_name:
options = {}
for value in data_schema[column]["enum"]:
options[value] = value
return options
return {"not_found": "not found"}
try:
options = {}
for value in data_schema[column_name]["enum"]:
options[value] = value
return options
except KeyError:
return {"not_found": "not found"}
def invert_columns(columns):