UPDATE: update logic for subtotal rows

This commit is contained in:
daovietanh99 2024-02-16 09:59:13 +07:00
parent fe75bfd8be
commit 109f336b80

View File

@ -505,7 +505,6 @@ def dict2xlsx(input: json, _type='report'):
ws[key + str(start_index)].fill = fill_green ws[key + str(start_index)].fill = fill_green
elif key in ['C', 'D', 'E', 'F', 'G', 'H']: elif key in ['C', 'D', 'E', 'F', 'G', 'H']:
ws[key + str(start_index)].fill = fill_yellow ws[key + str(start_index)].fill = fill_yellow
else:
if 'average_accuracy_rate' in mapping[key] and type(value) in [int, float] and value < 98: if 'average_accuracy_rate' in mapping[key] and type(value) in [int, float] and value < 98:
ws[key + str(start_index)].font = font_red ws[key + str(start_index)].font = font_red
elif 'average_processing_time' in mapping[key] and type(value) in [int, float] and value > 2.0: elif 'average_processing_time' in mapping[key] and type(value) in [int, float] and value > 2.0: