From 1805f55cf9b361f25d6d2f7b92d8e32302b162dc Mon Sep 17 00:00:00 2001 From: Arceliar Date: Wed, 12 Dec 2018 19:09:42 -0600 Subject: [PATCH] fix issue with unknown nodes --- web/updateGraph.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/updateGraph.py b/web/updateGraph.py index 89e4d0a..f445cbc 100755 --- a/web/updateGraph.py +++ b/web/updateGraph.py @@ -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)