Explorar o código

add 'location' from ALFRED data

Helge Jung %!s(int64=9) %!d(string=hai) anos
pai
achega
966870f26d
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      ffstatus/alfred.py

+ 3 - 0
ffstatus/alfred.py

@@ -131,6 +131,9 @@ class AlfredParser:
                 item['rxbytes'] = int(traffic["rx"]["bytes"])
                 item['txbytes'] = int(traffic["tx"]["bytes"])
 
+            if 'location' in nodestatic:
+                nodeinfo['location'] = nodestatic['location']
+
         return data
 
 if __name__ == "__main__":