UPDATE: update field value and file name

This commit is contained in:
daovietanh99 2024-02-27 18:15:57 +07:00
parent b11945b984
commit d558dd1bde
2 changed files with 2 additions and 0 deletions
cope2n-api
fwd_api/utils
report.xlsx

View File

@ -525,6 +525,8 @@ def dict2xlsx(input: json, _type='report'):
for key in mapping.keys():
value = get_value(subtotal, mapping[key])
ws[key + str(start_index)] = value
if key in ['C', 'D', 'E'] and value == 0:
ws[key + str(start_index)] = "-"
ws[key + str(start_index)].border = border
ws[key + str(start_index)].font = font_black
if 'accuracy' in mapping[key] or 'time' in mapping[key] or 'percent' in mapping[key] or 'speed' in mapping[key]:

Binary file not shown.