diff --git a/scripts/install_package.cmd b/scripts/install_package.cmd index 08dee474..68683e0c 100644 --- a/scripts/install_package.cmd +++ b/scripts/install_package.cmd @@ -13,5 +13,5 @@ taskkill /f /im chromedriver.exe echo ------------------------- echo Installing project... echo ------------------------- -pip install -U dist/tir_framework-1.20.28rc7.tar.gz +pip install -U dist/tir_framework-1.20.28rc8.tar.gz pause >nul | set/p = Press any key to exit ... diff --git a/tir/technologies/core/numexec.py b/tir/technologies/core/numexec.py index 2850592c..abeba755 100644 --- a/tir/technologies/core/numexec.py +++ b/tir/technologies/core/numexec.py @@ -7,10 +7,10 @@ import os -class NumExec(ConfigLoader): +class NumExec(): def __init__(self): - super().__init__() + self.config = ConfigLoader() def post_exec(self, url, numexec_folder): @@ -34,20 +34,20 @@ def post_exec(self, url, numexec_folder): time.sleep(12) if error: - response = str(f"STATUS: {status} Url: {url} ID: {self.num_exec} Error: {error}") + response = str(f"STATUS: {status} Url: {url} ID: {self.config.num_exec} Error: {error}") else: - response = str(f"STATUS: {status} Url: {url} ID: {self.num_exec}") + response = str(f"STATUS: {status} Url: {url} ID: {self.config.num_exec}") logger().debug(response) if status not in success_response: try: - path = Path(self.log_folder, numexec_folder) + path = Path(self.config.log_folder, numexec_folder) os.makedirs(path) except OSError: pass - with open(Path(path, f"{self.num_exec}_TIR_{strftime}.txt"), "w") as json_log: + with open(Path(path, f"{self.config.num_exec}_TIR_{strftime}.txt"), "w") as json_log: json_log.write(response) return status in success_response @@ -63,7 +63,7 @@ def send_request(self, url): "https": None, } - data = {'num_exec': self.num_exec, 'ip_exec': self.ipExec} + data = {'num_exec': self.config.num_exec, 'ip_exec': self.config.ipExec} response = requests.post(url.strip(), json=data, proxies=proxies) diff --git a/tir/version.py b/tir/version.py index 4965f00a..e784a5e3 100644 --- a/tir/version.py +++ b/tir/version.py @@ -1 +1 @@ -__version__ = '1.20.28rc7' +__version__ = '1.20.28rc8'