From d9fa673a9c0b255c8fc9cdc9b26f996b01b51bc1 Mon Sep 17 00:00:00 2001 From: Ycarus Date: Tue, 30 Jun 2020 17:04:52 +0200 Subject: [PATCH] Fix typo --- omr-admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omr-admin.py b/omr-admin.py index c9269bc..3121667 100755 --- a/omr-admin.py +++ b/omr-admin.py @@ -114,7 +114,7 @@ def get_username_from_userid(userid): data = json.loads(content) except ValueError as e: 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: return user return ''