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

Function _count_total_papers

scripts/precollect_papers_by_day.py:44–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43
44def _count_total_papers() -> int:
45 conn = sqlite3.connect(DB_PATH)
46 try:
47 cursor = conn.execute("SELECT COUNT(*) FROM papers")
48 return int(cursor.fetchone()[0])
49 finally:
50 conn.close()
51
52
53def precollect_by_day(

Callers 1

precollect_by_dayFunction · 0.85

Calls 2

executeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected