remove print
This commit is contained in:
parent
90881eb037
commit
066d8cae52
@ -157,11 +157,9 @@ class WPimport:
|
||||
if page.status_code == 201:
|
||||
result = page.json()
|
||||
print("Article ajoute : {0}".format(result["title"]["raw"]))
|
||||
print(comment_post)
|
||||
for i in comment_post:
|
||||
data = {"post": result["id"], "content": i["content"], "date": i["date"], "author_name": i["author"]}
|
||||
page = requests.post("http://{0}/wp-json/wp/v2/comments".format(self.wordpress), auth=self.basic, data=data)
|
||||
print(page.status_code)
|
||||
if page.status_code == 201:
|
||||
print("Commentaire ajoute pour {0}".format(result["title"]["raw"]))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user