evol 5
This commit is contained in:
@@ -3,7 +3,7 @@ import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
def get_nodes_type(cfg, tool, unit):
|
||||
def get_nodes_type(cfg: object, tool: str, unit: str) -> tuple:
|
||||
|
||||
with connetti_db(cfg) as conn:
|
||||
cur = conn.cursor(dictionary=True)
|
||||
@@ -16,7 +16,7 @@ def get_nodes_type(cfg, tool, unit):
|
||||
WHERE y.type NOT IN ('Anchor Link', 'None') AND t.name = '{tool}' AND u.name = '{unit}'
|
||||
ORDER BY n.num;
|
||||
"""
|
||||
logger.info(f"{unit} - {tool}: Executing query: {query}")
|
||||
#logger.info(f"{unit} - {tool}: Executing query: {query}")
|
||||
cur.execute(query)
|
||||
results = cur.fetchall()
|
||||
logger.info(f"{unit} - {tool}: {cur.rowcount} rows selected to get node type/Ain/Din/channels.")
|
||||
|
||||
Reference in New Issue
Block a user