Add status of all clients to the scopes tree

Fetch clients status using 'get_clients()'.
async-tree
Javier Sánchez Parra 2022-08-03 17:43:49 +02:00
parent 279184df5f
commit ddea404c5b
1 changed files with 1 additions and 2 deletions

View File

@ -218,8 +218,7 @@ def get_scopes(ips=set()):
allowed_scopes = []
get_allowed_scopes(all_scopes, allowed_scopes)
all_scopes = {'scope': allowed_scopes}
r = g.server.get('/clients')
clients = r.json()
clients = get_clients()
add_state_and_ips(all_scopes, clients['clients'], ips)
return all_scopes, clients