瀏覽代碼

WP:AFC/R moved

main
Ben Kurtovic 3 年之前
父節點
當前提交
c9de5ccb58
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      commands/afc_status.py

+ 1
- 1
commands/afc_status.py 查看文件

@@ -150,7 +150,7 @@ class AfCStatus(Command):
def count_redirects(self):
"""Returns the number of open redirect submissions. Calculated as the
total number of submissions minus the closed ones."""
title = "Wikipedia:Articles for creation/Redirects"
title = "Wikipedia:Articles for creation/Redirects and categories"
content = self.site.get_page(title).get()
total = len(re.findall("^\s*==(.*?)==\s*$", content, re.MULTILINE))
closed = content.lower().count("{{afc-c|b}}")


Loading…
取消
儲存