summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-06-21 14:20:06 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-06-21 14:20:06 +0200
commitf276f5dc1931c4795a3d2f08181f81fb32a71dca (patch)
treee65df6900aff999c6cd07f238496e0154311fc64
parentcb1faa55f848848bac23aac1ba355f1c226d439a (diff)
downloadfingerchange-f276f5dc1931c4795a3d2f08181f81fb32a71dca.tar.xz
Skip unregistered users
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--fingerchange.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/fingerchange.py b/fingerchange.py
index 92629fb..045ae46 100644
--- a/fingerchange.py
+++ b/fingerchange.py
@@ -127,6 +127,9 @@ def handle_client(reader, writer):
users = get_users_by_name(site, user)
for user in users:
+ if user['user_type'] == 'unregistered':
+ continue
+
msg = format_user(user, long_output)
writer.write(msg.encode('utf-8'))