diff options
author | vuko <vuko@hackerspace.pl> | 2020-06-11 17:29:23 +0200 |
---|---|---|
committer | vuko <vuko@hackerspace.pl> | 2020-06-11 21:32:14 +0200 |
commit | 3b51a314184662ecd4d11423a58cb15c4b8a02a0 (patch) | |
tree | 2c069bfb8a25b7d70e5795539a78443014bc4a6d | |
parent | 187426515f23623d45987742310ef300bd00f1d0 (diff) | |
download | checkinator-3b51a314184662ecd4d11423a58cb15c4b8a02a0.tar.gz checkinator-3b51a314184662ecd4d11423a58cb15c4b8a02a0.tar.bz2 checkinator-3b51a314184662ecd4d11423a58cb15c4b8a02a0.zip |
fix ignored addresses
-rw-r--r-- | at.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -285,6 +285,8 @@ def list_all(): def prettify_user(xxx_todo_changeme): (user, atime) = xxx_todo_changeme + if user == 'greenmaker': + user = 'dreammaker' return { 'login': user, 'timestamp': atime, @@ -316,7 +318,7 @@ def now_at(): users = {} for info in device_infos: - if info.owner not in users: + if info.owner not in users and not info.ignored: users[info.owner] = devices[info.hwaddr][0] result['users'] = sorted(list(users.items()), key=lambda u_a: u_a[1], reverse=True) |