Kaynağa Gözat

WP:AFC/R moved

main
Ben Kurtovic 5 yıl önce
ebeveyn
işleme
c9de5ccb58
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      commands/afc_status.py

+ 1
- 1
commands/afc_status.py Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet