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

Function _daily_note_roots

deployments/desktop/shared/agents.py:3295–3305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3293 reports["write_feishu_requested"] = bool(write_feishu)
3294 reports["background"] = True
3295 return {"feedback": feedback, "reports": reports}
3296
3297
3298def wiki_stats(user_id: str) -> Dict[str, Any]:
3299 stats = wiki_db.stats(user_id)
3300 nodes = _filter_wiki_nodes_for_configured_dir(wiki_db.list_nodes(user_id, limit=10000))
3301 if nodes is None:
3302 return {**stats, "wiki_dir": str(_effective_wiki_dir_for_user(user_id) or stats.get("wiki_dir") or "")}
3303
3304 by_type: Dict[str, int] = {}
3305 latest = None
3306 for node in nodes:
3307 node_type = str(node.get("node_type") or "node")
3308 by_type[node_type] = by_type.get(node_type, 0) + 1

Callers 2

_all_daily_note_pathsFunction · 0.85

Calls 1

_configured_pathFunction · 0.85

Tested by

no test coverage detected