Yoon-gu Hwang
commited on
Commit
β’
81ae7dd
1
Parent(s):
bfbcf54
bug fix
Browse files
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', 'μ΄λ¦', 'νμ
']],
|
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)
|