summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)