Merge pull request #34 from SDSRV-IDP/vietanh99-update-xlsx
Vietanh99 update xlsx
This commit is contained in:
commit
1211eb3662
@ -505,13 +505,12 @@ def dict2xlsx(input: json, _type='report'):
|
||||
ws[key + str(start_index)].fill = fill_green
|
||||
elif key in ['C', 'D', 'E', 'F', 'G', 'H']:
|
||||
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:
|
||||
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:
|
||||
ws[key + str(start_index)].font = font_red
|
||||
elif 'bad_percent' in mapping[key] and type(value) in [int, float] and value > 10:
|
||||
ws[key + str(start_index)].font = font_red
|
||||
if 'average_accuracy_rate' in mapping[key] and type(value) in [int, float] and value < 98:
|
||||
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:
|
||||
ws[key + str(start_index)].font = font_red
|
||||
elif 'bad_percent' in mapping[key] and type(value) in [int, float] and value > 10:
|
||||
ws[key + str(start_index)].font = font_red
|
||||
elif _type == 'report_detail':
|
||||
if 'accuracy' in mapping[key] and type(value) in [int, float] and value < 75:
|
||||
ws[key + str(start_index)].font = font_red
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user