Skip to content

Commit

Permalink
Fixed another typo and made flake8 happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Sep 9, 2015
1 parent 023f287 commit 168d1e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nikola/plugins/task/indexes.py
Expand Up @@ -83,7 +83,6 @@ def gen_tasks(self):
}

template_name = "index.tmpl"
posts = self.site.posts
for lang in kw["translations"]:
def page_link(i, displayed_i, num_pages, force_addition, extension=None):
feed = "_atom" if extension == ".atom" else ""
Expand Down Expand Up @@ -265,7 +264,7 @@ def index_section_path(self, name, lang, is_feed=False):
if name in self.number_of_pages_section[lang]:
number_of_pages = self.number_of_pages_section[lang][name]
else:
posts = [post for post in self._get_filtered_posts(lang, self.site.config['SHOW_UNTRANSLATED_POSTS']) if p.section_slug(lang) == name]
posts = [post for post in self._get_filtered_posts(lang, self.site.config['SHOW_UNTRANSLATED_POSTS']) if post.section_slug(lang) == name]
number_of_pages = self._compute_number_of_pages(posts, self.site.config['INDEX_DISPLAY_POST_COUNT'])
self.number_of_pages_section[lang][name] = number_of_pages
return utils.adjust_name_for_index_path_list([_f for _f in [self.site.config['TRANSLATIONS'][lang],
Expand Down

0 comments on commit 168d1e4

Please sign in to comment.