summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvuko <vuko@hackerspace.pl>2020-06-12 20:34:03 +0200
committervuko <vuko@hackerspace.pl>2020-06-12 20:37:40 +0200
commit22e4c187aaa0d676dec87bb093e87529bb843a6a (patch)
tree9e69b9e773e4154a2a1b507dc55eb0f99ed5d269
parent3b51a314184662ecd4d11423a58cb15c4b8a02a0 (diff)
downloadcheckinator-22e4c187aaa0d676dec87bb093e87529bb843a6a.tar.gz
checkinator-22e4c187aaa0d676dec87bb093e87529bb843a6a.tar.bz2
checkinator-22e4c187aaa0d676dec87bb093e87529bb843a6a.zip
fix __getattr__
-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()):