diff --git a/wotstats/views/account.py b/wotstats/views/account.py index ba91027..e0d7c4a 100644 --- a/wotstats/views/account.py +++ b/wotstats/views/account.py @@ -17,11 +17,13 @@ def __get_player_personal_data(): log.debug(session) user_id = parse_wargaming_openid_url(session['openid'])[0] - __ = requests.get( - 'https://api.worldoftanks.ru/wot/account/info/?application_id={}&account_id={}'.format( - current_app.config['WG_APPLICATION_ID'], user_id - ) - ).json() + url = "https://api.worldoftanks.ru/wot/account/info/" + payload = { + "application_id": current_app.config['WG_APPLICATION_ID'], + "account_id": user_id + } + + __ = requests.get(url, params=payload).json() return __.get('data', {}).get(user_id)