update file utils

This commit is contained in:
daovietanh99 2024-01-31 09:51:32 +07:00
parent 70358eef67
commit c6884c81a8

View File

@ -423,6 +423,8 @@ def dict2xlsx(input: json, _type='report'):
ws[key + str(start_index)].font = font_black_bold
if key_index == 0 or (key_index >= 9 and key_index <= 15):
ws[key + str(start_index)].fill = fill_gray
elif key_index == 1:
ws[key + str(start_index)].fill = fill_green
elif key_index >= 4 and key_index <= 8:
ws[key + str(start_index)].fill = fill_yellow
elif _type == 'report_detail':