diff --git a/config/DO_Dashboard_Config.xlsx b/config/DO_Dashboard_Config.xlsx index aaa2dfa..3bded32 100644 Binary files a/config/DO_Dashboard_Config.xlsx and b/config/DO_Dashboard_Config.xlsx differ diff --git a/do_dashboard.py b/do_dashboard.py index fcc82f1..c44df78 100644 --- a/do_dashboard.py +++ b/do_dashboard.py @@ -957,8 +957,10 @@ def process_requests_mapping(output_request, request_data): if not found: final_value = f"$$$$ Value Error : {final_value}" - # Post-processing: If the value is a list, join it with a pipe - if isinstance(final_value, list): + field_template = field.get("field_template") + + # Post-processing: If the value is a list, join it with a pipe (unless raw_array template) + if isinstance(final_value, list) and field_template != "raw_array": final_value = "|".join(map(str, final_value)) # Post-processing: Format score dictionaries @@ -966,8 +968,7 @@ def process_requests_mapping(output_request, request_data): final_value = f"{final_value['total']}/{final_value['max']}" # Post-processing: Apply field template - field_template = field.get("field_template") - if field_template and final_value not in ["undefined", "N/A"] and isinstance(final_value, (str, int, float, bool)): + if field_template and field_template != "raw_array" and final_value not in ["undefined", "N/A"] and isinstance(final_value, (str, int, float, bool)): if "%" in field_template: formatted = _apply_date_format(field_template, str(final_value)) final_value = formatted if formatted is not None else f"$$$$ Date Format Error: {final_value}"