summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--at.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/at.py b/at.py
index 0cc6cbf..c0e5c6e 100644
--- a/at.py
+++ b/at.py
@@ -304,7 +304,7 @@ def now_at():
result = dict()
devices = app.updater.get_active_devices()
device_infos = list(get_device_infos(g.db, list(devices.keys())))
- device_infos.sort(key=lambda di: devices.__getitem__)
+ device_infos.sort(key=lambda di: devices[di.hwaddr])
unknown = set(devices.keys()) - set(d.hwaddr for d in device_infos)
# das kektop sorting maschine
for name, prefixes in list(app.config['SPECIAL_DEVICES'].items()):