diff --git a/cope2n-api/fwd_api/utils/file.py b/cope2n-api/fwd_api/utils/file.py index b71604e..1a49e30 100644 --- a/cope2n-api/fwd_api/utils/file.py +++ b/cope2n-api/fwd_api/utils/file.py @@ -524,8 +524,10 @@ def dict2xlsx(input: json, _type='report'): ws[key + str(start_index)].style = normal_cell elif _type == 'report_detail': if 'accuracy' in mapping[key] and type(value) in [int, float] and value < 75: + ws[key + str(start_index)].number_format = '0.0' ws[key + str(start_index)].style = normal_cell_red elif 'speed' in mapping[key] and type(value) in [int, float] and value > 2.0: + ws[key + str(start_index)].number_format = '0.0' ws[key + str(start_index)].style = normal_cell_red else: ws[key + str(start_index)].style = normal_cell