Handle contactors separately in daily_report
This commit is contained in:
parent
7093d765ec
commit
c5c5b21f47
10 changed files with 427 additions and 242 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue