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

Function _paper_from_row

agents/wiki-agent/ingest/backfill.py:31–36  ·  view source on GitHub ↗
(row: Any)

Source from the content-addressed store, hash-verified

29
30
31def _paper_from_row(row: Any) -> Dict[str, Any]:
32 paper = dict(row)
33 metadata = _load_json(paper.get("metadata"))
34 if metadata:
35 paper.update({key: value for key, value in metadata.items() if paper.get(key) in (None, "", [], {})})
36 return paper
37
38
39def backfill_user(user_id: str, *, dry_run: bool = False) -> Dict[str, Any]:

Callers 1

backfill_userFunction · 0.85

Calls 2

getMethod · 0.80
_load_jsonFunction · 0.70

Tested by

no test coverage detected