aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/news.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/news.py b/bot/cogs/news.py
index 21ddb6128..83b4989b3 100644
--- a/bot/cogs/news.py
+++ b/bot/cogs/news.py
@@ -97,7 +97,7 @@ class News(Cog):
log.warning(f"Wrong datetime format passed in PEP new: {new['published']}")
continue
if (
- any(pep_new == new["title"] for pep_new in pep_news)
+ new["title"] in pep_news
or new_datetime.date() < date.today()
):
continue