def update_import_job(task, result, result_status):
 ij = ImportJob.query.filter_by(task=task).first()
 if (not ij):
  return
 ij.result = result
 ij.result_status = result_status
 save_to_db(ij, 'Import job updated')

def update_import_job ( task , result , result_status ) : ij = ImportJob . query . filter_by ( task = task ) . first ( ) if ( not ij ) : return ij . result = result ij . result_status = result_status save_to_db ( ij , 'Import job updated' )
update import job status .