Map Chinese status labels to canonical English flags. 现行 -> active 即将实施 -> upcoming (still active) 其它 -> other
(status_zh: str)
| 141 | except Exception: |
| 142 | continue |
| 143 | rows.append(row) |
| 144 | page_info: dict = {} |
| 145 | return rows, page_info |
| 146 | |
| 147 | |
| 148 | def _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: |