From 61a44d705d93f7ef87df8c6eab8982d7c715d8df Mon Sep 17 00:00:00 2001 From: daovietanh99 Date: Wed, 31 Jan 2024 09:00:04 +0700 Subject: [PATCH] update dict2xlsx --- cope2n-api/fwd_api/utils/file.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cope2n-api/fwd_api/utils/file.py b/cope2n-api/fwd_api/utils/file.py index 17d22ee..04eb5ce 100644 --- a/cope2n-api/fwd_api/utils/file.py +++ b/cope2n-api/fwd_api/utils/file.py @@ -363,9 +363,6 @@ def dict2xlsx(input: json, _type='report'): normal_cell = NamedStyle(name="normal_cell", font=font_black, border=border) normal_cell_red = NamedStyle(name="normal_cell_red", font=font_red, border=border) - wb = load_workbook(filename = 'report.xlsx') - ws = wb['Sheet1'] - if _type == 'report': wb = load_workbook(filename = 'report.xlsx') ws = wb['Sheet1'] @@ -409,7 +406,7 @@ def dict2xlsx(input: json, _type='report'): 'N': "ocr_processing_time", 'O': "is_reviewed", 'P': "bad_image_reasons", - 'R': "countermeasures", + 'Q': "countermeasures", } start_index = 4