def update_team_event_files( global_config, year, event, directory ): result = False # for now, we only support updating files in the EventData directory, so only continue if that's the # directory that was specified. if directory.upper() == 'EVENTDATA': # call each of the get_event_xxx() functions to attempt to retrieve the json data. This action # will also store the json payload to the EventData directory completing the desired # operation get_team_rankings_json( global_config, year, event, attr_filters=[], filter_name=None, thumbnails=True, store_json_file=True ) get_team_list_json( global_config, year, event, store_json_file=True ) # then update the JSON data files for each of the defined filters filter_list = WebAttributeDefinitions.get_filter_list() for name in filter_list: attr_filter = WebAttributeDefinitions.get_saved_filter(name) get_team_rankings_json( global_config, year, event, attr_filters=attr_filter, filter_name=name, thumbnails=True, store_json_file=True ) result = True return result