From 78fd46ad4ffc573b2f6c3885a7ac0310319c1d4d Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Wed, 17 Jul 2024 10:42:18 +0200 Subject: 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. --- ogcp/templates/actions/oglive.html | 4 ++-- ogcp/views.py | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'ogcp') diff --git a/ogcp/templates/actions/oglive.html b/ogcp/templates/actions/oglive.html index 9c9d48b..82bd957 100644 --- a/ogcp/templates/actions/oglive.html +++ b/ogcp/templates/actions/oglive.html @@ -32,8 +32,8 @@ {{oglive}} - {% for client in clients %} - {{client}} + {% for ip in clients %} +
{{ ip }}
{% endfor %} 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']) -- cgit v1.2.3-18-g5258