def build_cw_tanks_list(config):
    api = 'https://api-console.worldoftanks.com/wotx/encyclopedia/vehicles/'
    params = {'application_id': config['wg api key'], 'fields': 'era,tank_id'}
    data = get(api, params=params).json()['data']
    return ' OR '.join(list(map((lambda t: 'tank_id:{}'.format(t['tank_id'])), filter((lambda t: (t['era'] != '')), data.values()))))
def build_cw_tanks_list(config):
    api = 'https://api-console.worldoftanks.com/wotx/encyclopedia/vehicles/'
    params = {'application_id': config['wg api key'], 'fields': 'era,tank_id'}
    data = get(api, params=params).json()['data']
    return ' OR '.join(list(map((lambda t: 'tank_id:{}'.format(t['tank_id'])), filter((lambda t: (t['era'] != )), data.values()))))