add variable
This commit is contained in:
parent
e21721cac1
commit
fd426f150d
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user