Parcourir la source

Exclude userspace from tagging.

tags/v0.3
Ben Kurtovic il y a 7 ans
Parent
révision
2f5d7063b3
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. +4
    -1
      earwigbot/tasks/wikiproject_tagger.py

+ 4
- 1
earwigbot/tasks/wikiproject_tagger.py Voir le fichier

@@ -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)



Chargement…
Annuler
Enregistrer