- insert_filing: catch IntegrityError on duplicate accession instead of crashing - filter_new_accessions: bulk pre-filter entire quarter against DB in chunked IN queries (avoids 30min per-row accession_exists loop during resume) - mark_accession_seen: store placeholder row for derivative-only/empty filings so they aren't re-fetched on every resume - get_recent_buys_for_ticker: accept as_of_date to clamp queries for historical signal gen - get_all_buys_for_reprocess: return all buy filings ordered by transaction_date for backfill Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| db.py | ||
| models.py | ||