Skip to content

Commit

Permalink
Forgot argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Nov 30, 2016
1 parent 3ea89ed commit d81525e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nikola/plugins/task/taxonomies.py
Expand Up @@ -89,7 +89,7 @@ def _generate_classification_overview(self, taxonomy, lang):
# Collect all relevant classifications
if taxonomy.has_hierarchy:
def acceptor(node):
return len(self._filter_list(self.site.posts_per_classification[taxonomy.classification_name][lang][node.classification_name])) >= kw["minimum_post_count"]
return len(self._filter_list(self.site.posts_per_classification[taxonomy.classification_name][lang][node.classification_name], lang)) >= kw["minimum_post_count"]

clipped_root_list = [_clone_treenode(node, parent=None, acceptor=acceptor) for node in self.site.hierarchy_per_classification[taxonomy.classification_name][lang]]
clipped_root_list = [node for node in clipped_root_list if node]
Expand All @@ -98,7 +98,7 @@ def acceptor(node):
classifications = [cat.classification_name for cat in clipped_flat_hierarchy]
else:
classifications = natsort.natsorted([tag for tag, posts in self.site.posts_per_classification[taxonomy.classification_name][lang].items()
if len(self._filter_list(posts)) >= kw["minimum_post_count"]],
if len(self._filter_list(posts, lang)) >= kw["minimum_post_count"]],
alg=natsort.ns.F | natsort.ns.IC)
taxonomy.sort_classifications(classifications, lang)

Expand All @@ -107,7 +107,7 @@ def acceptor(node):
if taxonomy.add_postcount_in_overview:
items = [(classification,
self.site.link(taxonomy.classification_name, classification, lang),
len(self._filter_list(self.site.posts_per_classification[taxonomy.classification_name][lang][classification])))
len(self._filter_list(self.site.posts_per_classification[taxonomy.classification_name][lang][classification], lang)))
for classification in classifications]
else:
items = [(classification,
Expand All @@ -122,7 +122,7 @@ def acceptor(node):
self.site.link(taxonomy.classification_name, node.classification_name, lang),
node.indent_levels, node.indent_change_before,
node.indent_change_after,
len(self._filter_list(self.site.posts_per_classification[taxonomy.classification_name][lang][node.classification_name])))
len(self._filter_list(self.site.posts_per_classification[taxonomy.classification_name][lang][node.classification_name], lang)))
for node in clipped_flat_hierarchy
]
else:
Expand Down

0 comments on commit d81525e

Please sign in to comment.