Browse Source

Exclude userspace from tagging.

tags/v0.3
Ben Kurtovic 7 years ago
parent
commit
2f5d7063b3
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      earwigbot/tasks/wikiproject_tagger.py

+ 4
- 1
earwigbot/tasks/wikiproject_tagger.py View File

@@ -224,13 +224,16 @@ class WikiProjectTagger(Task):
if job.tag_categories:
self.process_page(page, job)
for member in page.get_members():
if member.namespace == constants.NS_CATEGORY:
nspace = member.namespace
if nspace == constants.NS_CATEGORY:
if recursive is True:
self.process_category(member, job, True)
elif recursive > 0:
self.process_category(member, job, recursive - 1)
elif job.tag_categories:
self.process_page(member, job)
elif nspace in (constants.NS_USER, constants.NS_USER_TALK):
continue
else:
self.process_page(member, job)



Loading…
Cancel
Save