Fixes a bug that will add a node with upercase letters in its id to the state.json each time the script is called

This commit is contained in:
root 2015-03-30 21:03:58 +02:00
parent 474a374cd6
commit 8301fee189

View file

@ -70,7 +70,7 @@ class NodeDB:
def maybe_node_by_id(self, mac): def maybe_node_by_id(self, mac):
for node in self._nodes: for node in self._nodes:
if mac.lower() == node.id: if mac.lower() == node.id.lower():
return node return node
raise KeyError raise KeyError