From 23bb094acb594157a62e2e136335700b0481b7a9 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 21 Apr 2011 23:16:16 -0400 Subject: [PATCH] test fix in broken redirect status --- irc/commands/afc_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/commands/afc_status.py b/irc/commands/afc_status.py index 398a348..b5cc1b0 100644 --- a/irc/commands/afc_status.py +++ b/irc/commands/afc_status.py @@ -94,7 +94,7 @@ class AFCStatus(BaseCommand): def count_redirects(self): 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}}") redirs = total - closed return redirs