forked from 0xWheatyz/SPARC
Fix analyze_single_patent to download PDF before reading from disk #412
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 silently fails or raises an unhelpful error.What to do
serp_api.pyor equivalent) to fetch and save itPatentNotFoundErroror equivalent with the patent ID in the messageAcceptance Criteria
analyze_single_patentwith a patent ID that has no local PDF triggers a downloadFileNotFoundError)Reference
Roadmap: P2 - Backend / analyze_single_patent prerequisite
Triage: Already Implemented
After reviewing the codebase, this issue has already been fully implemented in the current
mainbranch.This issue can be closed.