def get_fight_list(log_list, graphql_endpoint, headers):
    session = FuturesSession(max_workers=2)
    futures = [session.post(**get_log_args(log, graphql_endpoint, headers)) for log in log_list]
    fights_list = []
    for (q, item) in enumerate(futures):
        result = item.result()
        if (result.status_code != 200):
            print(result.status_code)
        fights = result.json()['data']['reportData']['report']['fights']
        for (k, fight) in enumerate(fights):
            fight['log_code'] = log_list[q]['code']
            fight['log_start'] = log_list[q]['startTime']
            fight['log_end'] = log_list[q]['endTime']
            fight['unique_id'] = ((log_list[q]['code'] + '_') + str(fight['id']))
            fights_list.extend([fight])
    return fights_list
def get_fight_list(log_list, graphql_endpoint, headers):
    session = FuturesSession(max_workers=2)
    futures = [session.post(**get_log_args(log, graphql_endpoint, headers)) for log in log_list]
    fights_list = []
    for (q, item) in enumerate(futures):
        result = item.result()
        if (result.status_code != 200):
            print(result.status_code)
        fights = result.json()['data']['reportData']['report']['fights']
        for (k, fight) in enumerate(fights):
            fight['log_code'] = log_list[q]['code']
            fight['log_start'] = log_list[q]['startTime']
            fight['log_end'] = log_list[q]['endTime']
            fight['unique_id'] = ((log_list[q]['code'] + '_') + str(fight['id']))
            fights_list.extend([fight])
    return fights_list