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

Function _rows_to_nodes

skills/wiki-store/scripts/wiki_db.py:88–89  ·  view source on GitHub ↗
(rows: Iterable[sqlite3.Row])

Source from the content-addressed store, hash-verified

86def _relative_file_path(user_id: str, node_type: str, node_id: str) -> str:
87 return (Path(storage_label_for_user_id(user_id)) / _node_folder(node_type) / f"{_slug(node_id)}.md").as_posix()
88
89
90def _row_to_node(row: sqlite3.Row) -> Dict[str, Any]:
91 node = dict(row)
92 node["metadata"] = _json_loads(node.pop("metadata_json", None))

Callers 3

embed_nodes_for_userFunction · 0.85
list_nodesFunction · 0.85
_keyword_search_nodesFunction · 0.85

Calls 1

_row_to_nodeFunction · 0.85

Tested by

no test coverage detected