From 5a78bd28f0811a65bee3e7b587ac20e955cea8ff Mon Sep 17 00:00:00 2001 From: Simon Briere Date: Thu, 2 Dec 2021 14:28:23 -0500 Subject: [PATCH] Updated QueryAccountInfos API --- Backend/API/QueryAccountInfos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Backend/API/QueryAccountInfos.py b/Backend/API/QueryAccountInfos.py index ae0bb84..5136e7c 100644 --- a/Backend/API/QueryAccountInfos.py +++ b/Backend/API/QueryAccountInfos.py @@ -72,8 +72,8 @@ def get(self): if current_login_type == LoginType.USER_LOGIN: user = current_user_client.get_user_info() account_infos['user'] = user - account_infos['username'] = user[0]['user_username'] - account_infos.update({'sites': user[0]['sites']}) + account_infos['username'] = user['user_username'] + account_infos.update({'sites': user['sites']}) account_infos['login_type'] = 'user' account_infos['login_id'] = current_user_client.id_user account_infos['login_uuid'] = current_user_client.user_uuid