From 7e9e479e06a5d6729e43b66ed5197801160f0dff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sk=C3=BDpala?= Date: Tue, 7 Nov 2023 21:55:12 +0100 Subject: [PATCH] News: Not all news start with news_ --- hrochobot/cogs/news.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hrochobot/cogs/news.py b/hrochobot/cogs/news.py index e7f5460..c4c61f1 100644 --- a/hrochobot/cogs/news.py +++ b/hrochobot/cogs/news.py @@ -57,7 +57,7 @@ async def post_news(bot, guild, entry_id): channel = get(guild.channels, id=news_json["news_channel"]) feed = await ksp_feed() - entries_with_id = list(filter(lambda e: e.id == f"https://ksp.mff.cuni.cz/news_{entry_id}", feed.entries)) + entries_with_id = list(filter(lambda e: e.id == f"https://ksp.mff.cuni.cz/{entry_id}", feed.entries)) if len(entries_with_id) == 0: return f"Entry with id ``{entry_id}`` not found."