Commit 959e94cc authored by David Mendez's avatar David Mendez
Browse files

Eubopen autocomplete: fix typos

parent 52c12554
......@@ -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)
......
Markdown is supported
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