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

Function _api_daily

deployments/desktop/server.py:266–278  ·  view source on GitHub ↗
(_query_params: Dict[str, Any], body: Dict[str, Any])

Source from the content-addressed store, hash-verified

264 raise ValueError("action must be create, switch, or delete")
265
266
267def _api_daily(_query_params: Dict[str, Any], body: Dict[str, Any]) -> Dict[str, Any]:
268 user_id = str(body.get("user_id") or "").strip()
269 if not user_id:
270 raise ValueError("user_id is required")
271 return agents.run_daily_push(
272 user_id=user_id,
273 days=_daily_days_from_body(body),
274 limit_per_source=_optional_positive_int(body.get("limit_per_source")),
275 arxiv_categories=body.get("arxiv_categories"),
276 conferences=body.get("conferences"),
277 journals=body.get("journals"),
278 target_date=_target_date_from_body(body),
279 )
280
281

Callers

nothing calls this directly

Calls 4

_daily_days_from_bodyFunction · 0.85
_optional_positive_intFunction · 0.85
_target_date_from_bodyFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected