From 438b3deb41a542c0363612195780966b157e0919 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Fri, 29 Sep 2017 12:08:21 -0400 Subject: [PATCH] Update bypass_auth_name.py --- utility/bypass_auth_name.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility/bypass_auth_name.py b/utility/bypass_auth_name.py index af5eb3d..66a6454 100644 --- a/utility/bypass_auth_name.py +++ b/utility/bypass_auth_name.py @@ -54,7 +54,7 @@ def get_get_user_names(username): response = r.json() res_data = response['response']['data'] if username: - return [d['user_id'] for d in res_data if d['friendly_name'] == username] + return [d['user_id'] for d in res_data if d['friendly_name'] in username] else: return [d['friendly_name'] for d in res_data]