Pārlūkot izejas kodu

nodes.json: include status and neighbours

Helge Jung 9 gadi atpakaļ
vecāks
revīzija
986e67fc39
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      ffstatus/server.py

+ 2 - 0
ffstatus/server.py

@@ -292,6 +292,8 @@ angesprochen und sollte aus einer Mehrzahl von Gründen nicht
                             for x in node.get('clients', [])],
                 'autoupdater': sw.get('autoupdater', 'unknown'),
                 'firmware': sw.get('firmware'),
+                'neighbours': node.get('neighbours', {}),
+                'status': self.server.storage.get_nodestatus(node=node),
             }
             geo = node.get('location', None)
             if geo is not None: