Yoon-gu Hwang commited on
Commit
81ae7dd
β€’
1 Parent(s): bfbcf54
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -84,16 +84,16 @@ def write_docx(gen):
84
  hdr_cells[0].paragraphs[0].runs[0].font.size = Pt(70)
85
  hdr_cells[0].paragraphs[0].runs[0].font.color.rgb = RGBColor(192, 192, 192)
86
  hdr_cells[0].paragraphs[0].alignment = docx.enum.text.WD_ALIGN_PARAGRAPH.CENTER
87
-
88
  hdr_cells = table.rows[2].cells
89
  hdr_cells[0].text = f"{'+'.join(types)}"
90
  hdr_cells[0].paragraphs[0].runs[0].font.size = Pt(70)
91
  hdr_cells[0].paragraphs[0].runs[0].font.color.rgb = RGBColor(192, 192, 192)
92
  hdr_cells[0].paragraphs[0].alignment = docx.enum.text.WD_ALIGN_PARAGRAPH.CENTER
93
-
94
  document.add_page_break()
95
- yield df[['No', '이름', 'νƒ€μž…']], filename.replace('docx', 'pdf')
96
-
97
  if filename not in os.listdir():
98
  document.save(filename)
99
  convert(filename)
 
84
  hdr_cells[0].paragraphs[0].runs[0].font.size = Pt(70)
85
  hdr_cells[0].paragraphs[0].runs[0].font.color.rgb = RGBColor(192, 192, 192)
86
  hdr_cells[0].paragraphs[0].alignment = docx.enum.text.WD_ALIGN_PARAGRAPH.CENTER
87
+
88
  hdr_cells = table.rows[2].cells
89
  hdr_cells[0].text = f"{'+'.join(types)}"
90
  hdr_cells[0].paragraphs[0].runs[0].font.size = Pt(70)
91
  hdr_cells[0].paragraphs[0].runs[0].font.color.rgb = RGBColor(192, 192, 192)
92
  hdr_cells[0].paragraphs[0].alignment = docx.enum.text.WD_ALIGN_PARAGRAPH.CENTER
93
+
94
  document.add_page_break()
95
+ yield df[['No', '이름', 'νƒ€μž…']], None
96
+
97
  if filename not in os.listdir():
98
  document.save(filename)
99
  convert(filename)