From a21e162be1edddced3ddc645910525f87cefd0cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=A5=D1=80?= =?UTF-8?q?=D0=B0=D0=BC=D0=BE=D0=B2?= Date: Mon, 27 May 2024 09:10:50 +0300 Subject: [PATCH] =?UTF-8?q?+=201=20=D1=84=D0=B8=D0=BB=D1=8C=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=20=D1=82=D0=B5=D0=BA=D1=81=D1=82=D0=B0?= =?UTF-8?q?-=D1=80=D0=B5=D0=B7=D1=83=D0=BB=D1=8C=D1=82=D0=B0=D1=82=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- news-bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/news-bot.py b/news-bot.py index 28dcbf2..2573114 100755 --- a/news-bot.py +++ b/news-bot.py @@ -435,12 +435,13 @@ def check_vk_posts(): logging.info(f"Новостей для публикации в ВК нет") else: for topic_id, topic_title in reversed(list_for_public): - if topic_id > 698: + if topic_id > 0: logging.info(f"Новости для публикации в ВК: {list_for_public}") text_data = news_content(topic_id) if text_data: content = f"----------------------------------------------------------\n{topic_title}\t\n" + text_data + "\n" content = remove_markdown_links(content) + content = re.sub(r'https://linux-gaming.ru/uploads/default/original/1X/5cfa59077a5275971401fab0114e56f3ffdd0ec4.png', '\n', content, flags=re.DOTALL) links = extract_links(content) if "Обновление скриптов" in topic_title: # Пример добавления изображения с постом