Skip to content

Commit

Permalink
fix(#89): Change FileResponse certificate path
Browse files Browse the repository at this point in the history
  • Loading branch information
IsmaelP19 committed Dec 18, 2022
1 parent ce3c73d commit b985df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion innoweb/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@ def certificate(request, event_id, participant_id):
certificate.save("static/certificates/Certificado.pdf", "PDF", resolution=180.0)

return FileResponse(
open("static\certificates\Certificado.pdf", "rb"),
open("static/certificates/Certificado.pdf", "rb"),
content_type="application/pdf",
)

0 comments on commit b985df4

Please sign in to comment.