Skip to content

Commit

Permalink
Fixed stupid error.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Sep 7, 2015
1 parent 993f63d commit 23b4580
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nikola/plugins/command/import_wordpress.py
Expand Up @@ -763,10 +763,10 @@ def _create_metadata(self, status, excerpt, tags, categories, post_name=None):
def _sanitize(self, tag, is_category):
if self.tag_saniziting_strategy == 'lower':
return tag.lower()
if tag.lower() not in _tag_sanitize_map[is_category]:
_tag_sanitize_map[is_category][tag.lower()] = [tag]
if tag.lower() not in self._tag_sanitize_map[is_category]:
self._tag_sanitize_map[is_category][tag.lower()] = [tag]
return tag
previous = _tag_sanitize_map[is_category][tag.lower()]
previous = self._tag_sanitize_map[is_category][tag.lower()]
if self.tag_saniziting_strategy == 'first':
if tag != previous[0]:
LOGGER.warn("Changing spelling of {0} name '{1}' to {2}.".format('category' if is_category else 'tag', tag, previous[0]))
Expand Down

0 comments on commit 23b4580

Please sign in to comment.