summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
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'])