Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: getnikola/nikola
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2887dcfd8b2b
Choose a base ref
...
head repository: getnikola/nikola
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 01ebd984903b
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Apr 19, 2015

  1. Copy the full SHA
    aa8682f View commit details
  2. Merge pull request #1660 from masayuko/master

    FEED_LENGTH correctly affect the number of feeds in the main RSS
    Kwpolska committed Apr 19, 2015
    Copy the full SHA
    01ebd98 View commit details
Showing with 2 additions and 2 deletions.
  1. +2 −2 nikola/plugins/task/rss.py
4 changes: 2 additions & 2 deletions nikola/plugins/task/rss.py
Original file line number Diff line number Diff line change
@@ -75,9 +75,9 @@ def gen_tasks(self):
deps = []
deps_uptodate = []
if kw["show_untranslated_posts"]:
posts = self.site.posts[:10]
posts = self.site.posts[:kw['feed_length']]
else:
posts = [x for x in self.site.posts if x.is_translation_available(lang)][:10]
posts = [x for x in self.site.posts if x.is_translation_available(lang)][:kw['feed_length']]
for post in posts:
deps += post.deps(lang)
deps_uptodate += post.deps_uptodate(lang)