Skip to content

Commit

Permalink
fix: default PDF path in PDF Writer
Browse files Browse the repository at this point in the history
  • Loading branch information
armanddidierjean authored and maximeroucher committed Oct 28, 2024
1 parent 7a68ff1 commit bb41957
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/modules/raid/utils/pdf/pdf_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ def write_participant_document(self, participant: Participant):
participant.parent_authorization,
]:
if document:
pdf = get_file_path_from_data("raid", document.id, "documents")
pdf = get_file_path_from_data(
"raid",
document.id,
"assets/pdf/default_PDF.pdf",
)
extension = pdf.absolute().suffix[1:]
if extension in ["jpg", "jpeg", "png"]:
self.write_document(document, participant)
Expand Down

0 comments on commit bb41957

Please sign in to comment.