diff --git a/gateway/scripts/checklist_audit.py b/gateway/scripts/checklist_audit.py index 358efb7..76c2be3 100644 --- a/gateway/scripts/checklist_audit.py +++ b/gateway/scripts/checklist_audit.py @@ -27,9 +27,20 @@ def extract_annotations(path): if line.startswith("#"): current_section = line.strip() # Check for ❌ in table cells (e.g. | R01 | ... | ... | ... | ... | ❌ 未修复 |) + # Check for ❌ in table cells (separate regexes for each status) for m in re.finditer(r'\|\s*❌\s*([^|]*?)\s*\|', line): cell_content = "❌ " + m.group(1).strip() - status = "fail" + status = "fail" if "暂缓" not in cell_content else "postponed" + results.append({ + "annotation": cell_content, + "status": status, + "section": current_section, + "source": os.path.basename(path), + "in_table": True, + }) + for m in re.finditer(r'\|\s*⏸️\s*([^|]*?)\s*\|', line): + cell_content = "⏸️ " + m.group(1).strip() + status = "postponed" results.append({ "annotation": cell_content, "status": status,