Compare commits

...

2 commits
dev ... legacy

Author SHA1 Message Date
Nils Schneider 39f358a0eb Merge pull request #46 from ffac/legacy
Fixes a bug that will add a node with upercase letters in its id to the ...
2015-03-30 21:23:36 +02:00
root 8301fee189 Fixes a bug that will add a node with upercase letters in its id to the state.json each time the script is called 2015-03-30 21:03:58 +02:00

View file

@ -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