Skip to content

Commit

Permalink
Merge pull request #1607 from totvs/release/v1.20.28rc8
Browse files Browse the repository at this point in the history
Release/v1.20.28rc8
  • Loading branch information
renanllisboa authored Dec 2, 2024
2 parents a9e366f + 6696098 commit 63816b8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion scripts/install_package.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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 ...
14 changes: 7 additions & 7 deletions tir/technologies/core/numexec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand All @@ -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
Expand All @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion tir/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.20.28rc7'
__version__ = '1.20.28rc8'

0 comments on commit 63816b8

Please sign in to comment.