SIENTIAPDE-1445
Refactor values.yaml to comment out email configuration settings for improved security and clarity. Update orchestrator_functions.py to enhance tag processing by iterating over items in read_tags, improving code readability.
This commit is contained in:
@@ -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 in config['read_tags']:
|
||||
tags[tag['tag_name']] = {
|
||||
'webid': tag['webid'],
|
||||
'aggr_func': tag.get('aggr_func', 'lts'),
|
||||
'data_range': tag.get('data_range', [-100, 100]),
|
||||
for 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]),
|
||||
}
|
||||
|
||||
base_config = base_scouter(config)
|
||||
|
||||
Reference in New Issue
Block a user