Skip to content
Permalink
Browse files
Fixed stupid error.
  • Loading branch information
felixfontein committed Sep 7, 2015
1 parent 993f63d commit 23b45808efe38b04fa046b7f37ba00a5d4236b16
Showing with 3 additions and 3 deletions.
  1. +3 −3 nikola/plugins/command/import_wordpress.py
@@ -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]))

0 comments on commit 23b4580

Please sign in to comment.