4
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2025-08-14 17:08:09 +00:00

use labels from nodeinfo if they're defined

This commit is contained in:
Arceliar
2018-12-17 18:39:27 -06:00
parent 5eb884bdc8
commit 275f0dc3ee
2 changed files with 3 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ def generate_graph(time_limit=60*60*3):
toAdd = []
for ip in data:
info = NodeInfo(ip, data[ip][0])
if len(data[ip]) >= 3: info.label = data[ip][2]
toAdd.append(info)
nodes = dict()