UPDATE: update field value and file name
This commit is contained in:
parent
b11945b984
commit
d558dd1bde
cope2n-api
@ -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.
Loading…
Reference in New Issue
Block a user