From 5613fa2f61cc7bec1941face9da2dd4db6b583ec Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Thu, 22 Nov 2012 02:35:14 +0100 Subject: [PATCH] include offline nodes from aliases.json in output --- nodedb.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nodedb.py b/nodedb.py index 6bc0121..e7ba62e 100644 --- a/nodedb.py +++ b/nodedb.py @@ -170,7 +170,10 @@ class NodeDB: try: node = self.maybe_node_by_mac((mac, )) except: - continue + # create an offline node + node = Node() + node.add_mac(mac) + self._nodes.append(node) node.name = alias['name']