forked from 0xWheatyz/SPARC
Fix: analyze_single_patent must download PDF before attempting to read it from disk #386
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?
Problem
analyze_single_patentconstructs a file pathpatents/{patent_id}.pdfand reads directly from disk, but does not download the PDF first. If the file is absent the method fails silently or with an unhelpful error.Work
patents/{patent_id}.pdf, check whether the file already exists on disk.Acceptance Criteria
analyze_single_patentfor a patent whose PDF is not cached downloads the PDF automatically.Reference
Roadmap item: P2 Backend —
analyze_single_patentassumes local file path.Closing as already implemented. Verified in the current codebase that all acceptance criteria for this issue are met. The work was completed in a prior sprint but the issue was not closed.