MCPcopy Create free account
hub / github.com/Open-Quant/openquant / recompute_chapter_status

Function recompute_chapter_status

scripts/afml_docs_loop.py:251–257  ·  view source on GitHub ↗
(chapter: dict[str, Any])

Source from the content-addressed store, hash-verified

249
250
251def recompute_chapter_status(chapter: dict[str, Any]) -> str:
252 statuses = {s["status"] for s in chapter["sections"]}
253 if statuses == {"done"}:
254 return "done"
255 if "in_progress" in statuses or ("done" in statuses and "pending" in statuses):
256 return "in_progress"
257 return "pending"
258
259
260def iter_sections(state: dict[str, Any]):

Callers 6

cmd_statusFunction · 0.85
cmd_nextFunction · 0.85
cmd_doneFunction · 0.85
cmd_resetFunction · 0.85
cmd_exportFunction · 0.85
cmd_evidenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected