From c030999181c44f3e8d77b334e03dce5ec6474396 Mon Sep 17 00:00:00 2001 From: nstarikov Date: Sat, 15 Aug 2026 08:41:53 +0300 Subject: [PATCH] detect legacy audience question blocks --- dzen-assistant/app/rss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dzen-assistant/app/rss.py b/dzen-assistant/app/rss.py index 7feed7c..0ec219a 100644 --- a/dzen-assistant/app/rss.py +++ b/dzen-assistant/app/rss.py @@ -163,7 +163,7 @@ def sanitize_rss_html(html: str) -> str: def _is_audience_question_paragraph(paragraph_html: str) -> bool: text = re.sub(r"<[^>]+>", " ", paragraph_html, flags=re.S) text = re.sub(r"\s+", " ", unescape(text)).strip().lower() - return text.startswith("ваше мнение:") and "комментар" in text + return text.startswith("ваше мнение:") def _audience_question_text(paragraph_html: str) -> str: