Skip to content

Commit

Permalink
Cancel removing docx template
Browse files Browse the repository at this point in the history
  • Loading branch information
fthrslntgy committed Dec 20, 2023
1 parent 68fb128 commit d48135e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions helpers/docx2pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ class Converter():
def docx2pdf(timestamp):
template_filename = "./results/%d.docx" % timestamp
os.system('soffice --headless --norestore --writer --convert-to pdf ./%s --outdir %s' % (template_filename, "./reports"))
os.remove(template_filename)
report_filename = "./reports/%d.docx.pdf" % timestamp
report_filename = "./reports/%d.pdf" % timestamp
return report_filename

def docx2preview(file_name):
Expand Down

0 comments on commit d48135e

Please sign in to comment.