auto-sync 2026-08-03 00:28:33

This commit is contained in:
Зарубин Филипп
2026-08-03 00:28:33 +03:00
parent 8b0043e7f7
commit 5e35ce19f8
6 changed files with 549 additions and 54 deletions
+5 -1
View File
@@ -115,7 +115,11 @@ def main() -> int:
if (case / "03_drafts").is_dir():
candidates += sorted((case / "03_drafts").rglob("*.md"))
candidates += [case / "_case.md", ctx / "review_log.md"]
approved_in = next((f for f in candidates if has_marker(f, r"ГОТОВ К ПОДАЧЕ")), None)
# Подстрока «ГОТОВ К ПОДАЧЕ» входит в отрицательный вердикт «НЕ ГОТОВ К ПОДАЧЕ»
# и в «документ пока НЕ готов к подаче» — машина принимала отказ Кони за приёмку
# и пускала протокол на шаг вперёд. Отрицание отсекаем явно.
approved_in = next((f for f in candidates
if has_marker(f, r"(?<!НЕ )(?<!не )ГОТОВ К ПОДАЧЕ")), None)
approved = approved_in is not None
def mark(ok: bool) -> str: