Permalink
Browse files

Fix unpublish status problem

  • Loading branch information...
1 parent dcbbe79 commit 719f51d94f36ae0ebf7ae1611a1a1ed9a36868e7 @huxuan huxuan committed Jul 19, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 exitwp.py
View
@@ -257,9 +257,10 @@ def get_attachment_path(src, dir, dir_prefix='a'):
'title': i['title'],
'date': i['date'],
'slug': i['slug'],
- 'status': i['status'],
'wordpress_id': i['wp_id'],
}
+ if i['status'] != u'publish':
+ yaml_header['published'] = False
if i['type'] == 'post':
i['uid'] = get_item_uid(i, date_prefix=True)

0 comments on commit 719f51d

Please sign in to comment.