Browse Source

test fix in broken redirect status

tags/v0.1
Ben Kurtovic 13 years ago
parent
commit
23bb094acb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      irc/commands/afc_status.py

+ 1
- 1
irc/commands/afc_status.py View File

@@ -94,7 +94,7 @@ class AFCStatus(BaseCommand):


def count_redirects(self): def count_redirects(self):
content = self.get_page("Wikipedia:Articles_for_creation/Redirects") content = self.get_page("Wikipedia:Articles_for_creation/Redirects")
total = len(re.findall("==\s*(Redirect|Category) request: \[\[(.*?)\]\]\s*==", content))
total = len(re.findall("^\s*==(.*?)==\s*$", content, re.MULTILINE))
closed = content.lower().count("{{afc-c|b}}") closed = content.lower().count("{{afc-c|b}}")
redirs = total - closed redirs = total - closed
return redirs return redirs


Loading…
Cancel
Save