From fd426f150d708c675cc9ea461fa1fae6208288ef Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Fri, 26 May 2023 17:50:57 +0200 Subject: [PATCH] add variable --- lib/WPRemove.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/WPRemove.py b/lib/WPRemove.py index 919970e..b8a9f6f 100644 --- a/lib/WPRemove.py +++ b/lib/WPRemove.py @@ -8,14 +8,15 @@ from requests.packages.urllib3.util.retry import Retry class WPRemove: # Constructor - def __init__(self, name="Thread-0", basic=None, wordpress="", logger=None, ssl_wordpress=True): - self._name = name + def __init__(self, index_name=1, number_thread=1, basic=None, wordpress="", logger=None, ssl_wordpress=True): self._basic = basic self._wordpress = wordpress self._logger = logger self._headers_json = {'Content-Type': 'application/json', 'Accept':'application/json'} - + self._name = "Thread-{0}".format(index_name) + self._index_thread = index_name self._protocol = "https" + self._number_thread = number_thread if ssl_wordpress is False: self._protocol = "http" self._request = requests.Session()