From 9e211f06321b09e53d0d42ec971112f350438c3a Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 28 Oct 2011 21:12:46 -0400 Subject: [PATCH] minor update --- bot/tasks/afc_statistics.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot/tasks/afc_statistics.py b/bot/tasks/afc_statistics.py index 4b86376..ce84baf 100644 --- a/bot/tasks/afc_statistics.py +++ b/bot/tasks/afc_statistics.py @@ -61,12 +61,13 @@ class Task(BaseTask): page = self.site.get_page(self.pagename) text = page.get() newtext = re.sub("()(.*?)()", - "\\1~~~~\\3", text, flags=re.DOTALL) + statistics.join(("\\1", "\\3")), text, + flags=re.DOTALL) if newtext == text: return # Don't edit the page if we're not adding anything newtext = re.sub("()(.*?)()", - "\\1~~~~\\3", newtext) + "\\1~~~ at ~~~~~\\3", newtext) page.edit(newtext, self.summary, minor=True) def process_edit(self, page):