fix(ops): оповещения уходят в тему «алерты», а не в переговорку (#2203) #3129

Merged
lekss361 merged 2 commits from fix/2203-notify-topic into main 2026-08-27 10:50:57 +00:00
Showing only changes of commit 6446a8cdf5 - Show all commits

View file

@ -69,7 +69,7 @@ def _posix(path: Path) -> str:
def _extract_notify(script: Path) -> str:
"""Вырезать тело notify() из настоящего файла — от заголовка до `}` в нулевой колонке."""
lines = script.read_text(encoding="utf-8").splitlines()
start = next((i for i, l in enumerate(lines) if l.startswith("notify()")), None)
start = next((i for i, ln in enumerate(lines) if ln.startswith("notify()")), None)
assert start is not None, f"{script.name}: не нашёл notify() — отправитель переименован"
end = next((i for i in range(start + 1, len(lines)) if lines[i] == "}"), None)
assert end is not None, f"{script.name}: не нашёл конец notify()"