From 1bf4ce64e40b1fc76db6ee3ae92936828a97488e Mon Sep 17 00:00:00 2001 From: Kevin Elliott Date: Wed, 17 Jul 2024 19:44:14 -0700 Subject: [PATCH] Another bug fix --- data_renderer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data_renderer.py b/data_renderer.py index 9e26f2f..a53e2e2 100644 --- a/data_renderer.py +++ b/data_renderer.py @@ -20,12 +20,12 @@ def _render(self): nodes = {} for id, node in self.data.nodes.items(): if id.startswith('!'): - id = id.replace('!', '') + id = id.replace('!', '') if len(id) != 8: # 8 hex chars required, if not, we abandon it - continue + continue nodes[id] = node - self.save_file("nodes.json", self.data.nodes) + self.save_file("nodes.json", nodes) print(f"Saved {len(nodes)} nodes to file ({self.config['paths']['data']}/nodes.json)") self.save_file("telemetry.json", self.data.telemetry)