diff --git a/ops/scripts/hygiene_notify.py b/ops/scripts/hygiene_notify.py index 25f2abc..7b1dc64 100644 --- a/ops/scripts/hygiene_notify.py +++ b/ops/scripts/hygiene_notify.py @@ -31,7 +31,7 @@ def main(): print("нет отчёта:", e) return 1 - m = re.search(r"Найдено: \*\*(\d+)\*\*", text) + m = re.search(r"(?:находок|Найдено):\s*\*\*(\d+)\*\*", text, re.I) total = m.group(1) if m else "?" m2 = re.search(r"· high: (\d+) · medium: (\d+) · low: (\d+) · info: (\d+)", text) counts = m2.groups() if m2 else ("?", "?", "?", "?")