Lowercase

geo
Jocavdh 7 years ago
parent e4d9d0f17b
commit 5aa4332eef

@ -444,7 +444,7 @@ def autocomplete_search():
if request.method == 'GET': if request.method == 'GET':
#query = request.form['search'] #query = request.form['search']
query = request.args.get('q') query = request.args.get('q')
query_tokenized = query.lower().split() query_tokenized = query.split()
#print(query_tokenized) #print(query_tokenized)
word_1 = query_tokenized[-2] word_1 = query_tokenized[-2]
word_2 = query_tokenized[-1] word_2 = query_tokenized[-1]

Loading…
Cancel
Save