From 51be6c59d965827e291386104556f54a9b2d9307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Sun, 29 Jan 2023 01:23:10 +0100 Subject: [PATCH] Use attached instead of corresponding --- discord_rss_bot/main.py | 6 +++--- discord_rss_bot/templates/index.html | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/discord_rss_bot/main.py b/discord_rss_bot/main.py index f4dc355..571fafa 100644 --- a/discord_rss_bot/main.py +++ b/discord_rss_bot/main.py @@ -499,7 +499,7 @@ def make_context_index(request: Request): feed_list = [] broken_feeds = [] - feeds_without_corresponding_webhook = [] + feeds_without_attached_webhook = [] feeds: Iterable[Feed] = reader.get_feeds() for feed in feeds: @@ -512,7 +512,7 @@ def make_context_index(request: Request): webhook_list = [hook["url"] for hook in hooks] if webhook not in webhook_list: - feeds_without_corresponding_webhook.append(feed) + feeds_without_attached_webhook.append(feed) return { "request": request, @@ -521,7 +521,7 @@ def make_context_index(request: Request): "entry_count": reader.get_entry_counts(), "webhooks": hooks, "broken_feeds": broken_feeds, - "feeds_without_corresponding_webhook": feeds_without_corresponding_webhook, + "feeds_without_attached_webhook": feeds_without_attached_webhook, } diff --git a/discord_rss_bot/templates/index.html b/discord_rss_bot/templates/index.html index afa988a..fd551cf 100644 --- a/discord_rss_bot/templates/index.html +++ b/discord_rss_bot/templates/index.html @@ -73,12 +73,12 @@ Thanks! {% endif %} - -{% if feeds_without_corresponding_webhook %} + +{% if feeds_without_attached_webhook %}