diff --git a/lib/WPImport.py b/lib/WPImport.py index 6987877..60e8cbc 100644 --- a/lib/WPImport.py +++ b/lib/WPImport.py @@ -290,9 +290,7 @@ class WPimport: self._logger.info("Article mis à jour : {0}".format(result["title"]["raw"])) self._addOrUpdateComment(result["id"], comment_post, result["title"]["raw"]) self._linkImgPost(result["title"]["raw"], list_img, result["id"]) - - - + if page_exist == False: page = requests.post("http://{0}/wp-json/wp/v2/posts".format(self._wordpress), auth=self._basic, headers=headers, data=json.dumps(data)) if page.status_code == 201: