diff --git a/gateway/scripts/checklist_audit.py b/gateway/scripts/checklist_audit.py index 3ea4f5f..358efb7 100644 --- a/gateway/scripts/checklist_audit.py +++ b/gateway/scripts/checklist_audit.py @@ -26,6 +26,17 @@ def extract_annotations(path): for line in lines: if line.startswith("#"): current_section = line.strip() + # Check for ❌ in table cells (e.g. | R01 | ... | ... | ... | ... | ❌ 未修复 |) + for m in re.finditer(r'\|\s*❌\s*([^|]*?)\s*\|', line): + cell_content = "❌ " + m.group(1).strip() + status = "fail" + results.append({ + "annotation": cell_content, + "status": status, + "section": current_section, + "source": os.path.basename(path), + "in_table": True, + }) for m in re.finditer(r'', line): anno = m.group(1) # Determine status