From cf36a3146baa3ee6fc26fabdb312d62755cf4e4c Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 21 Jun 2015 14:04:36 +0200 Subject: rename get_users to get_users_by_name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- fingerchange.py | 4 ++-- 1 file 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) -- cgit v1.2.3-70-g09d2