aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-04-21 15:33:31 +0300
committerGravatar ks129 <[email protected]>2020-04-21 15:33:31 +0300
commitcb3b2de26c654fa05816b72291e54762c42fad2c (patch)
treecce42e9278abfc2254ff3e3fe61f33db5b271228
parent`News` Cog improvisations (diff)
Simplified title check even more in PEP news
-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