diff options
author | 2020-05-29 17:57:09 +0200 | |
---|---|---|
committer | 2020-05-29 17:57:09 +0200 | |
commit | d12e84fe6834a0bc574e365a3283bc358c2ae4d9 (patch) | |
tree | 6e15d8677db726bbc8afa3cba42d56e400bae893 | |
parent | Merge pull request #947 from python-discord/redis_persistence (diff) |
Ignore response when posting python news
Sometimes a mailing list user doesn't press respond correctly to the email, and so a response is sent as a separate thread. To keep only new threads in the channel, we need to ignore those.
-rw-r--r-- | bot/cogs/python_news.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/cogs/python_news.py b/bot/cogs/python_news.py index d28af4a0b..d15d0371e 100644 --- a/bot/cogs/python_news.py +++ b/bot/cogs/python_news.py @@ -153,6 +153,7 @@ class PythonNews(Cog): if ( thread_information["thread_id"] in existing_news["data"][maillist] + or 'Re: ' in thread_information["subject"] or new_date.date() < date.today() ): continue |