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)
|
||||
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)
|
||||
|
||||
|
||||
|
|
Reference in a new issue