Skip to content

Commit

Permalink
Fix #3181 — don’t warn if status is set to published explicitly
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Oct 26, 2018
1 parent 7707144 commit 9425af4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGES.txt
@@ -1,3 +1,12 @@
New in master
=============

Bugfixes
--------

* Don’t warn if post status is set to ``published`` explicitly
(Issue #3181)

New in v8.0.1
=============

Expand Down
2 changes: 1 addition & 1 deletion nikola/post.py
Expand Up @@ -282,7 +282,7 @@ def __init__(
if status:
if status == 'published':
pass # already set before, mixing published + something else should result in the other thing
if status == 'featured':
elif status == 'featured':
self.post_status = status
elif status == 'private':
self.post_status = status
Expand Down

0 comments on commit 9425af4

Please sign in to comment.