summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 2d995fd..36bd216 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -140,6 +140,8 @@ def add_state_and_ips(scope, clients, ips):
if client:
scope['state'] = client['state']
scope['link'] = client.get('speed')
+ scope['last_cmd'] = {}
+ scope['last_cmd']['result'] = client.get('last_cmd').get('result')
else:
scope['state'] = 'off'
scope['ip'] = [scope['ip']]