summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/templates/actions/oglive.html4
-rw-r--r--ogcp/views.py5
2 files changed, 4 insertions, 5 deletions
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 @@
<tr>
<th>{{oglive}}</th>
<td>
- {% for client in clients %}
- {{client}}
+ {% for ip in clients %}
+ <div class="card d-inline-block" style="padding: 5px;">{{ ip }}</div>
{% endfor %}
</td>
</tr>
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'])