コード例 #1
0
def process(id):
    collection = get_db_collection(id, request.authz.WRITE)
    # re-process the documents
    process_documents.delay(collection_id=collection.id)
    update_collection(collection)
    return jsonify({'status': 'accepted'}, status=202)
コード例 #2
0
ファイル: collections_api.py プロジェクト: mustafaascha/aleph
def process(id):
    collection = get_db_collection(id, request.authz.WRITE)
    # re-process the documents
    process_documents.delay(collection_id=collection.id)
    return ('', 204)
コード例 #3
0
ファイル: collections_api.py プロジェクト: pudo/aleph
def process(collection_id):
    collection = get_db_collection(collection_id, request.authz.WRITE)
    # re-process the documents
    process_documents.delay(collection_id=collection.id)
    return ('', 204)