|
|
@ -606,11 +606,11 @@ def index():
|
|
|
|
# HTML output format
|
|
|
|
# HTML output format
|
|
|
|
|
|
|
|
|
|
|
|
# suggestions: use RawTextQuery to get the suggestion URLs with the same bang
|
|
|
|
# suggestions: use RawTextQuery to get the suggestion URLs with the same bang
|
|
|
|
suggestion_urls = map(lambda suggestion: {
|
|
|
|
suggestion_urls = list(map(lambda suggestion: {
|
|
|
|
'url': raw_text_query.changeSearchQuery(suggestion).getFullQuery(),
|
|
|
|
'url': raw_text_query.changeSearchQuery(suggestion).getFullQuery(),
|
|
|
|
'title': suggestion
|
|
|
|
'title': suggestion
|
|
|
|
},
|
|
|
|
},
|
|
|
|
result_container.suggestions)
|
|
|
|
result_container.suggestions))
|
|
|
|
|
|
|
|
|
|
|
|
correction_urls = list(map(lambda correction: {
|
|
|
|
correction_urls = list(map(lambda correction: {
|
|
|
|
'url': raw_text_query.changeSearchQuery(correction).getFullQuery(),
|
|
|
|
'url': raw_text_query.changeSearchQuery(correction).getFullQuery(),
|
|
|
|