cosmetic
This commit is contained in:
parent
5f338d30e9
commit
61263b3a99
1 changed files with 7 additions and 5 deletions
|
@ -17,11 +17,13 @@ def __get_player_personal_data():
|
||||||
log.debug(session)
|
log.debug(session)
|
||||||
user_id = parse_wargaming_openid_url(session['openid'])[0]
|
user_id = parse_wargaming_openid_url(session['openid'])[0]
|
||||||
|
|
||||||
__ = requests.get(
|
url = "https://api.worldoftanks.ru/wot/account/info/"
|
||||||
'https://api.worldoftanks.ru/wot/account/info/?application_id={}&account_id={}'.format(
|
payload = {
|
||||||
current_app.config['WG_APPLICATION_ID'], user_id
|
"application_id": current_app.config['WG_APPLICATION_ID'],
|
||||||
)
|
"account_id": user_id
|
||||||
).json()
|
}
|
||||||
|
|
||||||
|
__ = requests.get(url, params=payload).json()
|
||||||
return __.get('data', {}).get(user_id)
|
return __.get('data', {}).get(user_id)
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue