Handle contactors separately in daily_report

This commit is contained in:
rasta5man 2025-10-19 19:47:04 +02:00
parent 7093d765ec
commit c5c5b21f47
10 changed files with 427 additions and 242 deletions

View file

@ -14,7 +14,7 @@ with open("/home/unipi/flowserver/databases/nodes.table", 'r') as file:
if counter != 1:
i = [m.start() for m in re.finditer(re.escape(search_str), line)]
node = line[ i[0] + 1 : i[1] ]
tbname = line[ i[1] + 1 : i[2] ]
tbname = line[ i[3] + 1 : i[4] ]
final.append({node:tbname})
counter += 1
print(json.dumps(final))