From 76d27718860afaf317304b975fb4b7ac74122767 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Tue, 11 Apr 2023 23:27:41 +0200 Subject: [PATCH] remove newline useless --- lib/WPImport.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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: