5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-12-28 12:55:39 +00:00

fix issue with unknown nodes

This commit is contained in:
Arceliar 2018-12-12 19:09:42 -06:00
parent d087a3de67
commit 1805f55cf9

View File

@ -39,8 +39,9 @@ def generate_graph(time_limit=60*60*3):
nodes = dict()
def addAncestors(info):
parent = NodeInfo("?", info.getParent())
parent.label = "{} {}".format(parent.ip, parent.coords)
coords = info.getParent()
parent = NodeInfo("{} {}".format("?", coords), coords)
parent.label = "?"
nodes[parent.coords] = parent
if parent.coords != parent.getParent(): addAncestors(parent)