summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-06-21 14:04:36 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-06-21 14:04:36 +0200
commitcf36a3146baa3ee6fc26fabdb312d62755cf4e4c (patch)
tree5ede16039173da582b4c29c88500347fbd9d42c4
parent85f51015d5cb921ced8d145d826293af63c35b75 (diff)
downloadfingerchange-cf36a3146baa3ee6fc26fabdb312d62755cf4e4c.tar.xz
rename get_users to get_users_by_name
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--fingerchange.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fingerchange.py b/fingerchange.py
index a005d18..25f4e93 100644
--- a/fingerchange.py
+++ b/fingerchange.py
@@ -18,7 +18,7 @@ def get_user_by_uid(site, uid):
return res['items'][0]
-def get_users(site, name=''):
+def get_users_by_name(site, name=''):
params = {
'site': site,
'inname': name,
@@ -93,7 +93,7 @@ def handle_client(reader, writer):
uid = int(user)
users = [get_user_by_uid(site, uid)]
except ValueError:
- users = get_users(site, user)
+ users = get_users_by_name(site, user)
for user in users:
msg = format_user(user)