forked from 0xWheatyz/SPARC
Bug: analyze_single_patent does not download PDF before reading from disk #720
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?
Summary
analyze_single_patentconstructs a pathpatents/{patent_id}.pdfand reads it from disk, but does not download the PDF first. If the file is not already present the method will fail silently or with a confusing error.What to do
analyze_single_patentto determine if a download step is expected to precede it.analyze_single_patentso it is self-contained.Acceptance Criteria
analyze_single_patentwith a patent ID that has no cached PDF either downloads the PDF automatically OR raises a clear, descriptive exception.Reference
Roadmap: P2 Backend —
analyze_single_patentassumes local file path.[Repo Manager] Already resolved. analyze_single_patent downloads PDF from cached link if not on disk. Raises FileNotFoundError if no link cached.
Closing as already implemented in the codebase.