summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Dobrowolski <admin@tastycode.pl>2018-01-26 20:25:39 +0100
committerPiotr Dobrowolski <admin@tastycode.pl>2018-01-26 20:25:39 +0100
commite4f6dcbbaa68598ea9f517489a9625e5301b09da (patch)
tree53dfd6f19edd2e7404a50850a95ab9aa1f2a9cc0
parent8d0e1d1c4166b0a42695582bb222cea590ad8784 (diff)
downloadcheckinator-e4f6dcbbaa68598ea9f517489a9625e5301b09da.tar.gz
checkinator-e4f6dcbbaa68598ea9f517489a9625e5301b09da.tar.bz2
checkinator-e4f6dcbbaa68598ea9f517489a9625e5301b09da.zip
Fix grouping
-rw-r--r--at.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/at.py b/at.py
index 8248bd7..9e1dfa0 100644
--- a/at.py
+++ b/at.py
@@ -262,15 +262,15 @@ def now_at():
devices = app.updater.get_active_devices()
device_infos = list(get_device_infos(g.db, devices.keys()))
device_infos.sort(key=lambda di: devices.__getitem__)
- all_unknown = set(devices.keys()) - set(d.hwaddr for d in device_infos)
+ unknown = set(devices.keys()) - set(d.hwaddr for d in device_infos)
# das kektop sorting maschine
- unknown = all_unknown
for name, prefixes in app.config['SPECIAL_DEVICES'].items():
result[name] = set()
- for u in all_unknown:
+ for u in unknown.copy():
if u.startswith(prefixes):
result[name].add(u)
unknown.discard(u)
+
result['unknown'] = unknown
users = {}