summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvuko <vuko@hackerspace.pl>2020-06-11 17:29:23 +0200
committervuko <vuko@hackerspace.pl>2020-06-11 21:32:14 +0200
commit3b51a314184662ecd4d11423a58cb15c4b8a02a0 (patch)
tree2c069bfb8a25b7d70e5795539a78443014bc4a6d
parent187426515f23623d45987742310ef300bd00f1d0 (diff)
downloadcheckinator-3b51a314184662ecd4d11423a58cb15c4b8a02a0.tar.gz
checkinator-3b51a314184662ecd4d11423a58cb15c4b8a02a0.tar.bz2
checkinator-3b51a314184662ecd4d11423a58cb15c4b8a02a0.zip
fix ignored addresses
-rw-r--r--at.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/at.py b/at.py
index 96be1d8..0cc6cbf 100644
--- a/at.py
+++ b/at.py
@@ -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)