Skip to content

Commit

Permalink
Forgotten parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
fthrslntgy committed Dec 20, 2023
1 parent ffdffff commit f5fdcff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@app.post("/pdf",summary="Creates a pdf report.", tags=["Report"])
def CreatePDFReport(body: ReportCreateRequest):
filename = time.time()
RenderClass.render(body)
RenderClass.render(body, filename)
return FileResponse(Converter.docx2pdf(filename))

@app.post("/csv",summary="Creates a csv report.", tags=["Report"])
Expand Down

0 comments on commit f5fdcff

Please sign in to comment.