Skip to content

Commit

Permalink
Update worker.py
Browse files Browse the repository at this point in the history
Adapted URL for file download with mayan edms 4.7
  • Loading branch information
DrRSatzteil authored May 28, 2024
1 parent 340d080 commit 5026fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mayanmindee/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def load_document(m: Mayan, document_id) -> (dict, bytes):
)

# Load document pdf
pdf_bytes = m.downloadfile(document["file_latest"]["download_url"])
pdf_bytes = m.downloadfile(document["file_latest"]["url"] + "/download/")

return document, pdf_bytes

Expand Down

0 comments on commit 5026fae

Please sign in to comment.