tum 11 miesięcy temu
rodzic
commit
b4b10786eb
1 zmienionych plików z 5 dodań i 2 usunięć
  1. 5 2
      app/report/gen_report.py

+ 5 - 2
app/report/gen_report.py

@@ -212,7 +212,9 @@ def gen_xlsx(template_file, selected_sheets, prefix_filename, data):
212 212
 
213 213
                         elif value is True:
214 214
                             img = Image(checked_image_path)
215
-                            img.width = img.height = pixels_to_points(15)
215
+                            img.width = pixels_to_points(20)
216
+                            img.height = pixels_to_points(15)
217
+
216 218
                             # img.width = 15
217 219
                             # img.hegiht = 10
218 220
                             print(f"{cell.coordinate}")
@@ -224,7 +226,8 @@ def gen_xlsx(template_file, selected_sheets, prefix_filename, data):
224 226
                             img = Image(unchecked_image_path)
225 227
                             # img.width = 15
226 228
                             # img.height = 10
227
-                            img.width = img.height = pixels_to_points(15)
229
+                            img.width = pixels_to_points(20)
230
+                            img.height = pixels_to_points(15)
228 231
                             # sheet.add_image(img, cell.coordinate)
229 232
                             # set_image_with_offset(sheet, img, cell.coordinate, offset_x=100)
230 233
                             center_image_in_cell(sheet, img, cell.coordinate, )