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

Function mark_pushed

skills/storage-helper/scripts/db_ops.py:801–814  ·  view source on GitHub ↗

Mark papers as pushed

(paper_ids: List[int])

Source from the content-addressed store, hash-verified

799 ))
800 conn.commit()
801 paper_id = cursor.lastrowid
802 return paper_id
803 except sqlite3.IntegrityError:
804 print(f"Paper already exists: {paper_data.get('arxiv_id')}")
805 return None
806 finally:
807 conn.close()
808
809
810def add_papers_batch(papers_list: List[Dict]) -> int:
811 """Add multiple papers in a batch"""
812 count = 0
813 for paper in papers_list:
814 result = add_paper(paper)
815 if result:
816 count += 1
817 return count

Callers

nothing calls this directly

Calls 4

cursorMethod · 0.80
nowMethod · 0.80
get_connectionFunction · 0.70
closeMethod · 0.45

Tested by

no test coverage detected