merge_machine/api.py
def update_results(project_id):
    '''Update the results in Elasticsearch index.
    
    GET:
        - project_id
        
    POST:
        - module_params:
            - labels: [{'source_id': ABC,  'ref_id': 'XYZ', 'is_match': bool}]
            
    '''
    _, module_params = _parse_request()
    
    proj = ESLinker(project_id)
    
    proj.update_results(module_params['labels'])
    
    return jsonify(error=False)
Update the results in Elasticsearch index.
    
    GET:
        - project_id
        
    POST:
        - module_params:
            - labels: [{'source_id': ABC,  'ref_id': 'XYZ', 'is_match': bool}]
            
    
Update the results in Elasticsearch index.


Update the results in Elasticsearch index .
def update_results(project_id):
    _, module_params = _parse_request()
    proj = ESLinker(project_id)
    proj.update_results(module_params['labels'])
    return jsonify(error=False)
def update_results ( project_id ) : _ , module_params = _parse_request ( ) proj = ESLinker ( project_id ) proj . update_results ( module_params [ 'labels' ] ) return jsonify ( error = False )
Update the results in Elasticsearch index.
Update the results in Elasticsearch index .
'''Update the results in Elasticsearch index.
    
    GET:
        - project_id
        
    POST:
        - module_params:
            - labels: [{'source_id': ABC,  'ref_id': 'XYZ', 'is_match': bool}]
            
    '''
project_id