|
|
@@ -153,8 +153,9 @@ def gen_xlsx(template_file, selected_sheets, prefix_filename, data):
|
|
153
|
153
|
unchecked_image_path = "/app/report/checkbox_unchecked.jpg" # Path to the unchecked checkbox image
|
|
154
|
154
|
|
|
155
|
155
|
# Load the template workbook
|
|
|
156
|
+ print("before load workbook {template_file}")
|
|
156
|
157
|
workbook = load_workbook(template_file)
|
|
157
|
|
-
|
|
|
158
|
+ print("after load")
|
|
158
|
159
|
# Remove sheets not in selected_sheets
|
|
159
|
160
|
for sheet_name in workbook.sheetnames:
|
|
160
|
161
|
if sheet_name not in selected_sheets:
|