From bbe0cea5a2fd4b2c20eb7ffe381cabbfd96d02d9 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 24 Mar 2012 03:29:31 -0400 Subject: [PATCH] Minor cleanup --- earwigbot/tasks/afc_copyvios.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/earwigbot/tasks/afc_copyvios.py b/earwigbot/tasks/afc_copyvios.py index 7c7fd31..2d3f5d7 100644 --- a/earwigbot/tasks/afc_copyvios.py +++ b/earwigbot/tasks/afc_copyvios.py @@ -89,9 +89,9 @@ class Task(BaseTask): if result.violation: content = page.get() - template = "\{\{{0}|url={1}|confidence={2}\}\}" + template = "\{\{{0}|url={1}|confidence={2}\}\}\n" template = template.format(self.template, url, confidence) - newtext = "\n".join((template, content)) + newtext = template + content if "{url}" in self.summary: page.edit(newtext, self.summary.format(url=url)) else: @@ -140,7 +140,7 @@ class Task(BaseTask): be) retained for one day; this task does not remove old entries (that is handled by the Toolserver component). - This will only be called if "cache_results" == True in the task's, + This will only be called if "cache_results" == True in the task's config, which is False by default. """ pageid = page.pageid()