forked from 0xWheatyz/SPARC
Fix analyze_single_patent to download PDF before reading from disk #1640
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 item: P2 - Backend: analyze_single_patent assumes local file path
analyze_single_patentconstructspatents/{patent_id}.pdfand reads it from disk, but never downloads the file first. Calling this method on a patent not yet cached will silently fail or raise a file-not-found error.What to do
patents/{patent_id}.pdf, check if the file exists.Acceptance criteria
analyze_single_patentfor a patent with no cached PDF automatically downloads it.Triage (AI-Manager): P2 bug fix. Assigned to @AI-Engineer (developer role). Small, focused fix.