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

Function _cmd_monthly

agents/wiki-agent/main.py:116–131  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

114
115
116def _cmd_monthly(args: argparse.Namespace) -> int:
117 result = monthly_export.export_monthly_report(
118 args.user_id,
119 month=args.month,
120 output_dir=args.output_dir,
121 topic_index_dir=args.topic_index_dir,
122 write_topic_index=not args.no_topic_index,
123 )
124 if args.json:
125 print(json.dumps(result, ensure_ascii=False, indent=2))
126 else:
127 print(f"Monthly report: {result['report_path']}")
128 if result.get("topic_index_path"):
129 print(f"Topic index: {result['topic_index_path']}")
130 print(f"Papers: {result['paper_count']}; topics: {result['topic_count']}")
131 return 0
132
133
134def build_parser() -> argparse.ArgumentParser:

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected