5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-11-22 12:50:27 +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() nodes = dict()
def addAncestors(info): def addAncestors(info):
parent = NodeInfo("?", info.getParent()) coords = info.getParent()
parent.label = "{} {}".format(parent.ip, parent.coords) parent = NodeInfo("{} {}".format("?", coords), coords)
parent.label = "?"
nodes[parent.coords] = parent nodes[parent.coords] = parent
if parent.coords != parent.getParent(): addAncestors(parent) if parent.coords != parent.getParent(): addAncestors(parent)