mirror of
https://github.com/Ysurac/openmptcprouter-vps-admin.git
synced 2025-02-14 19:41:52 +00:00
Fix typo
This commit is contained in:
parent
a0f4b7f827
commit
d9fa673a9c
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ def get_username_from_userid(userid):
|
||||||
data = json.loads(content)
|
data = json.loads(content)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
return {'error': 'Config file not readable', 'route': 'get_username'}
|
return {'error': 'Config file not readable', 'route': 'get_username'}
|
||||||
for user as content['users'][0]:
|
for user in content['users'][0]:
|
||||||
if 'userid' in content['users'][0][user] and content['users'][0][user]['userid'] == userid:
|
if 'userid' in content['users'][0][user] and content['users'][0][user]['userid'] == userid:
|
||||||
return user
|
return user
|
||||||
return ''
|
return ''
|
||||||
|
|
Loading…
Reference in a new issue