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

Function _push_payload

deployments/desktop/shared/agents.py:302–311  ·  view source on GitHub ↗
(push: Optional[Dict[str, Any]])

Source from the content-addressed store, hash-verified

300
301
302def _push_payload(push: Optional[Dict[str, Any]]) -> Optional[Dict[str, Any]]:
303 if not push:
304 return None
305 papers = list(push.get("papers") or [])
306 return {
307 "push_id": push.get("push_id"),
308 "push_time": push.get("push_time") or push.get("created_at"),
309 "papers": [_paper_card(paper, index) for index, paper in enumerate(papers, start=1)],
310 "metadata": dict(push.get("metadata") or {}),
311 }
312
313
314def _preview_key(paper: Dict[str, Any]) -> str:

Callers 3

run_daily_pushFunction · 0.85
start_daily_push_taskFunction · 0.85
load_latest_pushFunction · 0.85

Calls 2

_paper_cardFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected