From a4dc9ce2ec998b9e986d8c7410fec450f7a13c57 Mon Sep 17 00:00:00 2001 From: 98llm Date: Mon, 13 Jan 2025 15:13:36 -0300 Subject: [PATCH 1/4] Hotfix/duplicated logs --- tir/technologies/core/logging_config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tir/technologies/core/logging_config.py b/tir/technologies/core/logging_config.py index f1338c97..eba52db8 100644 --- a/tir/technologies/core/logging_config.py +++ b/tir/technologies/core/logging_config.py @@ -179,6 +179,7 @@ def configure_logger(): dictConfig(logging_config) _logger = logging.getLogger(logger_profile) + _logger.propagate = False def logger(): global _logger From 68e25dbb97c44ee8e8207f21d5a2ede26f4f184b Mon Sep 17 00:00:00 2001 From: LEANDRO L MONTEIRO <60761500+98llm@users.noreply.github.com> Date: Mon, 13 Jan 2025 15:16:02 -0300 Subject: [PATCH 2/4] Update version.py --- tir/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tir/version.py b/tir/version.py index 092b3759..5cf6bba4 100644 --- a/tir/version.py +++ b/tir/version.py @@ -1 +1 @@ -__version__ = '1.20.30rc1' +__version__ = '1.20.30rc2' From 8405de85858c75bcc94ea4482009005a851eb0ae Mon Sep 17 00:00:00 2001 From: LEANDRO L MONTEIRO <60761500+98llm@users.noreply.github.com> Date: Mon, 13 Jan 2025 15:16:16 -0300 Subject: [PATCH 3/4] Update install_package.cmd --- scripts/install_package.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install_package.cmd b/scripts/install_package.cmd index 78749532..e95a1186 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.30rc1.tar.gz +pip install -U dist/tir_framework-1.20.30rc2.tar.gz pause >nul | set/p = Press any key to exit ... From 0d136ecfc6df6b274b93aa1e79b39b61b3219a54 Mon Sep 17 00:00:00 2001 From: 98llm Date: Wed, 15 Jan 2025 16:41:30 -0300 Subject: [PATCH 4/4] check_error to coinscreen --- tir/technologies/webapp_internal.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tir/technologies/webapp_internal.py b/tir/technologies/webapp_internal.py index 458e3b94..ffcb114e 100644 --- a/tir/technologies/webapp_internal.py +++ b/tir/technologies/webapp_internal.py @@ -1225,14 +1225,14 @@ def close_modal(self): except: pass - def check_screen_element(self, term="", selector=None, scraptype=enum.ScrapType.MIXED): + def check_screen_element(self, term="", selector=None, scraptype=enum.ScrapType.MIXED, check_error=True): """ [Internal] This method checks if the screen element is displayed. """ - element_exists = True if self.element_exists(term=term, scrap_type=scraptype, optional_term=selector, main_container="body") else False + element_exists = True if self.element_exists(term=term, scrap_type=scraptype, optional_term=selector, main_container="body", check_error=check_error) else False logger().debug(f'Checking screen element: "{term}": {element_exists}') @@ -1341,7 +1341,7 @@ def check_news_screen(self): """ selector = self.news_screen_selectors() - return self.check_screen_element(term=self.language.news, selector=selector) + return self.check_screen_element(term=self.language.news, selector=selector, check_error=False) def check_screen(self): """