From 65de6decb2b03440b331ed76fb795127b26e1ff3 Mon Sep 17 00:00:00 2001 From: Jonathan Golder Date: Fri, 10 Mar 2017 21:51:59 +0100 Subject: [PATCH] markpages: Filter redirects Do not mark redirects discussion pages --- bots/markpages.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bots/markpages.py b/bots/markpages.py index 0fbaded..8ace79a 100644 --- a/bots/markpages.py +++ b/bots/markpages.py @@ -129,6 +129,7 @@ class MarkPagesBot( CurrentPageBot ): # sets 'current_page' on each treat() for talkpage in pagegenerators.PageWithTalkPageGenerator( redfam.article_generator( filter_existing=True, + filter_redirects=True, exclude_article_status=["marked"] ), return_talk_only=True ):