浏览代码

Exclude userspace from tagging.

tags/v0.3
Ben Kurtovic 7 年前
父节点
当前提交
2f5d7063b3
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      earwigbot/tasks/wikiproject_tagger.py

+ 4
- 1
earwigbot/tasks/wikiproject_tagger.py 查看文件

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



正在加载...
取消
保存