Browse Source

A couple of bugfixes.

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
a3481ca6d3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      earwigbot/tasks/wikiproject_tagger.py

+ 2
- 2
earwigbot/tasks/wikiproject_tagger.py View File

@@ -175,7 +175,7 @@ class WikiProjectTagger(Task):
self.logger.error(u"Banner [[{0}]] does not exist".format(title)) self.logger.error(u"Banner [[{0}]] does not exist".format(title))
return banner, None return banner, None


if banner == text:
if banner == title:
names = [self._upperfirst(banner)] names = [self._upperfirst(banner)]
else: else:
names = [self._upperfirst(banner), self._upperfirst(title)] names = [self._upperfirst(banner), self._upperfirst(title)]
@@ -230,7 +230,7 @@ class WikiProjectTagger(Task):
return return


for template in code.ifilter_templates(recursive=True): 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: if name in job.names:
log = u"Skipping page: [[{0}]]; already tagged with '{1}'" log = u"Skipping page: [[{0}]]; already tagged with '{1}'"
self.logger.info(log.format(page.title, name)) self.logger.info(log.format(page.title, name))


Loading…
Cancel
Save