(export_instance, progress_tracker)
Rebuild the given daily saved ExportInstance
Rebuild the given daily saved ExportInstance
Rebuild the given daily saved ExportInstance
def rebuild_export(export_instance, progress_tracker):
    """
    Rebuild the given daily saved ExportInstance
    """
    filters = export_instance.get_filters() or []
    es_filters = [f.to_es_filter() for f in filters]
    with TransientTempfile() as temp_path:
        export_file = get_export_file([export_instance], es_filters, temp_path, progress_tracker)
        with export_file as payload:
            save_export_payload(export_instance, payload)
def rebuild_export ( export_instance , progress_tracker ) : filters = export_instance . get_filters ( ) or [ ] es_filters = [ f . to_es_filter ( ) for f in filters ] with TransientTempfile ( ) as temp_path : export_file = get_export_file ( [ export_instance ] , es_filters , temp_path , progress_tracker ) with export_file as payload : save_export_payload ( export_instance , payload )