MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / choose_pdf_source

Function choose_pdf_source

scripts/fetch_pdf.py:47–49  ·  view source on GitHub ↗
(record: dict)

Source from the content-addressed store, hash-verified

45
46
47def choose_pdf_source(record: dict) -> tuple[str, str]:
48 candidates = pdf_source_candidates(record)
49 return candidates[0] if candidates else ("", "")
50
51
52def pdf_source_candidates(record: dict) -> list[tuple[str, str]]:

Callers

nothing calls this directly

Calls 1

pdf_source_candidatesFunction · 0.85

Tested by

no test coverage detected