MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / paper_exists

Function paper_exists

scripts/collect_papers_by_date.py:51–54  ·  view source on GitHub ↗

检查论文是否已存在

(conn: sqlite3.Connection, arxiv_id: str)

Source from the content-addressed store, hash-verified

49
50
51def paper_exists(conn: sqlite3.Connection, arxiv_id: str) -> bool:
52 """检查论文是否已存在"""
53 cursor = conn.execute("SELECT 1 FROM papers WHERE arxiv_id = ?", (arxiv_id,))
54 return cursor.fetchone() is not None
55
56
57def save_paper(conn: sqlite3.Connection, paper: Dict) -> None:

Callers 1

collect_papersFunction · 0.70

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected