(name)
return {"error": "No matches by name of %s" % name}
Returns a list_of_ids that have the same name as your input
Returns a list_of_ids that have the same name as your input
Returns a list_of_ids that have the same name as your input
def get_match_id_by_name(name):
    '''
    Returns a list_of_ids that have the same name as your input
    '''
    global match_info
    list_of_ids = []
    for match in match_info:
        if match_info[match]['name'] == name:
            list_of_ids.append(match_info[match]['match_id'])
    if len(list_of_ids) > 0:
        return list_of_ids
    return {"error": "No matches by name of %s" % name}
def get_match_id_by_name ( name ) : global match_info list_of_ids = [ ] for match in match_info : if match_info [ match ] [ 'name' ] == name : list_of_ids . append ( match_info [ match ] [ 'match_id' ] ) if len ( list_of_ids ) > 0 : return list_of_ids return { "error" : "No matches by name of %s" % name }