Преглед изворни кода

add 'location' from ALFRED data

Helge Jung пре 9 година
родитељ
комит
966870f26d
1 измењених фајлова са 3 додато и 0 уклоњено
  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__":