Skip to content

Commit

Permalink
Merge pull request #840 from totvs/hotfix/report-compare
Browse files Browse the repository at this point in the history
Hotfix/report compare
  • Loading branch information
renanllisboa authored Aug 2, 2022
2 parents 2ce93cd + 0bbf458 commit 9072967
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 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.19.0.tar.gz
pip install -U dist/tir_framework-1.19.1.tar.gz
pause >nul | set/p = Press any key to exit ...
6 changes: 4 additions & 2 deletions tir/technologies/webapp_internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -7677,14 +7677,16 @@ def create_auto_file(self, file=""):
:return:
"""

file = re.sub('auto', '', file)

file_extension = file[-4:].lower()

full_path = f'{self.config.baseline_spool}\\{file}'

auto_file_path = f'{self.config.baseline_spool}\\{next(iter(file.split(".")))}auto{file_extension}'

if pathlib.Path(f'{auto_file_path}').exists():
pathlib.Path(f'{auto_file_path}').unlink()
return auto_file_path

with open(full_path) as file_obj:
readlines = file_obj.readlines()
Expand Down Expand Up @@ -7754,7 +7756,7 @@ def sub_string(self, line, file_extension):
if datetime:
line = re.sub(datetime.group(0), '"DateTime">2015-01-01T00:00:00', line)
if width:
line = re.sub(datetime.group(0), 'ss:Width="100"', line)
line = re.sub(width.group(0), 'ss:Width="100"', line)

return line

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.19.0'
__version__ = '1.19.1'

0 comments on commit 9072967

Please sign in to comment.