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

Function append_candidate

scripts/fetch_pdf.py:41–44  ·  view source on GitHub ↗
(candidates: list[tuple[str, str]], kind: str, value: str)

Source from the content-addressed store, hash-verified

39
40
41def append_candidate(candidates: list[tuple[str, str]], kind: str, value: str) -> None:
42 cleaned = value.strip()
43 if cleaned and (kind, cleaned) not in candidates:
44 candidates.append((kind, cleaned))
45
46
47def choose_pdf_source(record: dict) -> tuple[str, str]:

Callers 1

pdf_source_candidatesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected