MCPcopy Create free account
hub / github.com/RASAAS/docmcp-knowledge / _normalize_status

Function _normalize_status

scripts/fetch_nifdc_standards.py:143–156  ·  view source on GitHub ↗

Map Chinese status labels to canonical English flags. 现行 -> active 即将实施 -> upcoming (still active) 其它 -> other

(status_zh: str)

Source from the content-addressed store, hash-verified

141 except Exception:
142 continue
143 rows.append(row)
144 page_info: dict = {}
145 return rows, page_info
146
147
148def _normalize_status(status_zh: str) -> str:
149 """Map Chinese status labels to canonical English flags.
150
151 现行 -> active
152 即将实施 -> upcoming (still active)
153 其它 -> other
154 """
155 if not status_zh:
156 return "unknown"
157 if "现行" in status_zh:
158 return "active"
159 if "即将" in status_zh or "实施" in status_zh:

Callers 1

fetch_allFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected