Skip to content
Snippets Groups Projects
Commit e52a8a99 authored by Megan Henning's avatar Megan Henning
Browse files

Disable pylint error for elasticsearch methods

parent 50863bcf
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,8 @@ class SearchHandler(base.RequestHandler):
}
query = es_query(body, 'files', min_score, additional_filter)
try:
es_results = config.es.search(index='scitran', body=query, size=size or 10)
# pylint disable can be removed after PyCQA/pylint#258 is fixed
es_results = config.es.search(index='scitran', body=query, size=size or 10) # pylint: disable=unexpected-keyword-arg
## elastic search results are wrapped in subkey ['hits']['hits']
es_results = es_results['hits']['hits']
results = []
......
......@@ -50,6 +50,8 @@ class SearchContainer(object):
return self.results
def _exec_query(self, query):
# pylint: disable=unexpected-keyword-arg
# pylint disable can be removed after PyCQA/pylint#258 is fixed
q = es_query(query, self.cont_name, _min_score)
results = config.es.search(
index='scitran',
......@@ -124,6 +126,8 @@ class TargetProperty(object):
return self._get_results(parent_name, parent_results)
def _exec_query(self, query):
# pylint: disable=unexpected-keyword-arg
# pylint disable can be removed after PyCQA/pylint#258 is fixed
q = es_query(query, self.name, _min_score)
results = config.es.search(
index='scitran',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment