summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-07-17 10:42:18 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-07-17 10:57:44 +0200
commit78fd46ad4ffc573b2f6c3885a7ac0310319c1d4d (patch)
tree738f9700fe65f2875a2e52d9362e0b67cf1cfe18 /ogcp/views.py
parentcae11fb04e68a7aaba6212967253517137454d1d (diff)
ogcp: show oglive client groups by ip
Use the same visualization as the other parts of the web in the table that groups clients by ogLive.
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 456b444..875d0ec 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -2125,11 +2125,10 @@ def get_clients_oglive(ips, server):
raise ServerErrorCode
resp = r.json()
oglive = resp['livedir']
- client_name = resp['name']
if oglive not in oglives:
- oglives[oglive] = [client_name]
+ oglives[oglive] = [ip]
else:
- oglives[oglive].append(client_name)
+ oglives[oglive].append(ip)
return oglives
@app.route('/action/oglive', methods=['GET', 'POST'])