Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ChEMBL
C
ChEMBL
Main Web Interface
Elasticsearch Proxy API
Commits
959e94cc
Commit
959e94cc
authored
Sep 29, 2021
by
David Mendez
Browse files
Eubopen autocomplete: fix typos
parent
52c12554
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
app/blueprints/eubopen/search/controller.py
app/blueprints/eubopen/search/controller.py
+2
-3
No files found.
app/blueprints/eubopen/search/controller.py
View file @
959e94cc
...
...
@@ -12,13 +12,12 @@ EUBOPEN_SEARCH_BLUEPRINT = Blueprint('eubopen_search', __name__)
@
EUBOPEN_SEARCH_BLUEPRINT
.
route
(
'/autocomplete'
,
methods
=
[
'POST'
])
@
validate_form_with
(
marshmallow_schemas
.
EubopenAutocomplete
)
def
get_autocomplete_results
(
term
):
def
get_autocomplete_results
():
"""
:param term: term for which to do the autocomplete
:return: the results for the autocomplete query
"""
form_data
=
request
.
form
form_data
.
get
(
'term'
)
term
=
form_data
.
get
(
'term'
)
json_response
=
services
.
get_autocomplete_results
(
term
)
http_response
=
jsonify
(
json_response
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment