From a3481ca6d3ae1cfb3ef89216e1da7ad338046573 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 30 Aug 2012 23:09:45 -0400 Subject: [PATCH] A couple of bugfixes. --- earwigbot/tasks/wikiproject_tagger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/earwigbot/tasks/wikiproject_tagger.py b/earwigbot/tasks/wikiproject_tagger.py index f2073fe..1d7d30f 100644 --- a/earwigbot/tasks/wikiproject_tagger.py +++ b/earwigbot/tasks/wikiproject_tagger.py @@ -175,7 +175,7 @@ class WikiProjectTagger(Task): self.logger.error(u"Banner [[{0}]] does not exist".format(title)) return banner, None - if banner == text: + if banner == title: names = [self._upperfirst(banner)] else: names = [self._upperfirst(banner), self._upperfirst(title)] @@ -230,7 +230,7 @@ class WikiProjectTagger(Task): return for template in code.ifilter_templates(recursive=True): - name = self.upperfirst(template.name.strip()) + name = self._upperfirst(template.name.strip()) if name in job.names: log = u"Skipping page: [[{0}]]; already tagged with '{1}'" self.logger.info(log.format(page.title, name))