From 5d2d297aa2c470c478f20eb3c71d60f9479781fd Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Thu, 18 Dec 2025 11:58:14 -0300 Subject: [PATCH] SIENTIAPDE-1445 Refactor tag processing in pi_web_api_scouter function to improve clarity by renaming variables and enhancing readability of the configuration handling. --- orchestrator/utils/orchestrator_functions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/orchestrator/utils/orchestrator_functions.py b/orchestrator/utils/orchestrator_functions.py index 90386a0..8b7c509 100644 --- a/orchestrator/utils/orchestrator_functions.py +++ b/orchestrator/utils/orchestrator_functions.py @@ -225,11 +225,11 @@ def pi_web_api_scouter(config: dict[str, Any]): API timeout is automatically adjusted to not exceed workflow frequency. """ tags = {} - for tag, config in config['read_tags'].items(): + for tag, tag_config in config['read_tags'].items(): tags[tag] = { - 'webid': config['webid'], - 'aggr_func': config.get('aggr_func', 'lts'), - 'data_range': config.get('data_range', [-100, 100]), + 'webid': tag_config['webid'], + 'aggr_func': tag_config.get('aggr_func', 'lts'), + 'data_range': tag_config.get('data_range', [-100, 100]), } base_config = base_scouter(config)