Commit 32ca4bf2 authored by Pablo Panero's avatar Pablo Panero
Browse files

[skip ci] extension: change signal registration to comply with new invenio-indexer version

parent 53a7a3ed
......@@ -7,7 +7,7 @@
# granted to it by virtue of its status as Intergovernmental Organization
# or submit itself to any jurisdiction.
from invenio_indexer.signals import before_record_index_arguments
from invenio_indexer.signals import before_record_index
from cern_search_rest_api.modules.cernsearch.indexer import csas_indexer_receiver
from cern_search_rest_api.modules.cernsearch.views import build_blueprint
......@@ -26,7 +26,7 @@ class CERNSearch(object):
self.init_config(app)
blueprint = build_blueprint(app)
app.register_blueprint(blueprint)
before_record_index_arguments.connect(csas_indexer_receiver, sender=app)
before_record_index.connect(csas_indexer_receiver, sender=app)
app.extensions["cern-search"] = self
def init_config(self, app):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment