From ddea404c5bf8deab620bc0b9f44eeebea6790f24 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Wed, 3 Aug 2022 17:43:49 +0200 Subject: Add status of all clients to the scopes tree Fetch clients status using 'get_clients()'. --- ogcp/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ogcp') diff --git a/ogcp/views.py b/ogcp/views.py index fe17528..44c395a 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -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 -- cgit v1.2.3-18-g5258