diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-08-03 17:43:49 +0200 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-09-27 09:48:35 +0200 |
commit | ddea404c5bf8deab620bc0b9f44eeebea6790f24 (patch) | |
tree | c72daa7ed738593a0ef194e791c8f8e668947934 /ogcp/views.py | |
parent | 279184df5f6b49ec6f63d3ccb97fbe002da1a85a (diff) |
Add status of all clients to the scopes tree
Fetch clients status using 'get_clients()'.
Diffstat (limited to 'ogcp/views.py')
-rw-r--r-- | ogcp/views.py | 3 |
1 files changed, 1 insertions, 2 deletions
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 |