summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-08-03 17:43:49 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-08-05 13:40:37 +0200
commit5c6d287aec6bb238b3eed6d14b5ec2bd197c9785 (patch)
tree914ac619d2343d5dd32d3addbc1cda262860d274
parent45fc0ec787b1c1f3ba1ac12f22c6cf69bb46122a (diff)
Add status of all clients to the scopes tree
Fetch clients status using 'get_clients()'.
-rw-r--r--ogcp/views.py3
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