Update bypass_auth_name.py
This commit is contained in:
parent
35fd74bcb4
commit
438b3deb41
@ -54,7 +54,7 @@ def get_get_user_names(username):
|
|||||||
response = r.json()
|
response = r.json()
|
||||||
res_data = response['response']['data']
|
res_data = response['response']['data']
|
||||||
if username:
|
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:
|
else:
|
||||||
return [d['friendly_name'] for d in res_data]
|
return [d['friendly_name'] for d in res_data]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user