From 066d8cae52c771ceeee9d340b4dfedcde8437238 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Fri, 31 Mar 2023 00:06:47 +0200 Subject: [PATCH] remove print --- insert_wordpress.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/insert_wordpress.py b/insert_wordpress.py index a5a86eb..9e40faa 100644 --- a/insert_wordpress.py +++ b/insert_wordpress.py @@ -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"]))