Skip to content
Permalink
Browse files

Fixing wrong usage.

  • Loading branch information
felixfontein committed Nov 30, 2016
1 parent 099165d commit 81b8caa7431156c04768642da397e5b6ffe711da
Showing with 4 additions and 1 deletion.
  1. +4 −1 nikola/plugins/misc/taxonomies_classifier.py
@@ -76,7 +76,10 @@ def _do_classification(self, site):
else:
post.meta[lang][taxonomy.metadata_name] = classifications[lang][0] if len(classifications[lang]) > 0 else None
if taxonomy.metadata_friendly_name is not None:
friendly_names = [taxonomy.get_classification_friendly_name(classification, lang) for classification in classifications[lang]]
if taxonomy.has_hierarchy:
friendly_names = [taxonomy.get_classification_friendly_name(taxonomy.extract_hierarchy(classification), lang) for classification in classifications[lang]]
else:
friendly_names = [taxonomy.get_classification_friendly_name(classification, lang) for classification in classifications[lang]]
if taxonomy.more_than_one_classifications_per_post:
post.meta[lang][taxonomy.metadata_friendly_name] = friendly_names
else:

0 comments on commit 81b8caa

Please sign in to comment.
You can’t perform that action at this time.