def query_for_tank_info(tanks):
    url = 'https://wotconsole.ru/api/tankopedia/en/{}.json'
    new_tanks = {'xbox': OrderedDict(), 'ps': OrderedDict()}
    for (plat, t) in tanks.items():
        for (tank, battles) in t.items():
            response = get(url.format(tank))
            new_tanks[plat][response.json()['info']['user_string']] = battles
    new_tanks['playstation'] = new_tanks['ps']
    del new_tanks['ps']
    return new_tanks
def query_for_tank_info(tanks):
    url = 'https://wotconsole.ru/api/tankopedia/en/{}.json'
    new_tanks = {'xbox': OrderedDict(), 'ps': OrderedDict()}
    for (plat, t) in tanks.items():
        for (tank, battles) in t.items():
            response = get(url.format(tank))
            new_tanks[plat][response.json()['info']['user_string']] = battles
    new_tanks['playstation'] = new_tanks['ps']
    del new_tanks['ps']
    return new_tanks