forked from 0xWheatyz/SPARC
Fix analyze_single_patent to download PDF before reading from disk #1079
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Roadmap reference: P2 / Backend - analyze_single_patent assumption
analyze_single_patentconstructs the pathpatents/{patent_id}.pdfand reads it from disk, but never triggers a download first. If the PDF does not already exist locally, the method silently fails or raises a file-not-found error.What to do
patents/{patent_id}.pdfexists.Acceptance criteria
analyze_single_patentfor a patent whose PDF is not yet on disk triggers an automatic download.Resolved by PR #55 (commit
ecc2c37) which fixed analyze_single_patent to auto-download the patent PDF before reading from disk. Closing as complete.