post.date = post_date
post.terms_names = wp_terms
post.post_status = "pending"
-
- wp.call(NewPost(post))
+ post.comment_status = "open"
+ new_post_id = wp.call(NewPost(post))
for filename in sys.argv[1:]:
with open(filename, "r", encoding="latin1") as f:
process_file(f.read(), filename)
+