Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Shortening.
  • Loading branch information
felixfontein committed Apr 28, 2018
1 parent f99a898 commit e43b64c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nikola/post.py
Expand Up @@ -255,17 +255,15 @@ def __init__(

status = self.meta[lang].get('status')
if status:
is_private = False
is_draft = False
if status == 'published':
post_status = status
is_private = False
is_draft = False
elif status == 'private':
post_status = status
is_private = True
is_draft = False
elif status == 'draft':
post_status = status
is_private = False
is_draft = True
else:
LOGGER.warn(('The post "{0}" has the unknown status "{1}". ' +
Expand Down

0 comments on commit e43b64c

Please sign in to comment.