Skip to content
Permalink
Browse files
Simplify require_all_tags option detection
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Feb 16, 2017
1 parent a694e45 commit 5c2cd6f0d26a08598b0069493b8d7fbfafddc8ea
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/plugins/compile/rest/post_list.py
@@ -167,7 +167,7 @@ def run(self):
stop = self.options.get('stop')
reverse = self.options.get('reverse', False)
tags = self.options.get('tags')
require_all_tags = not self.options.get('require_all_tags', True) # a flag returns None if declared
require_all_tags = 'require_all_tags' in self.options
categories = self.options.get('categories')
sections = self.options.get('sections')
slugs = self.options.get('slugs')

0 comments on commit 5c2cd6f

Please sign in to comment.