From 8301fee189a2ebe33d7f16e90a2ac2c1b4f39582 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 30 Mar 2015 21:03:58 +0200 Subject: [PATCH] Fixes a bug that will add a node with upercase letters in its id to the state.json each time the script is called --- nodedb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodedb.py b/nodedb.py index 0bec73e..5d7cb69 100644 --- a/nodedb.py +++ b/nodedb.py @@ -70,7 +70,7 @@ class NodeDB: def maybe_node_by_id(self, mac): for node in self._nodes: - if mac.lower() == node.id: + if mac.lower() == node.id.lower(): return node raise KeyError