Skip to content

Commit

Permalink
Simplify require_all_tags option detection
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Feb 16, 2017
1 parent a694e45 commit 5c2cd6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/plugins/compile/rest/post_list.py
Expand Up @@ -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')
Expand Down

0 comments on commit 5c2cd6f

Please sign in to comment.