on master help sign in
hide suggestions box if empty
495ae59Marc Abonce Seguin
searx/webapp.py+5−5
@@ -606,11 +606,11 @@ def index():
606 # HTML output format
606 # HTML output format
607
607
608 # suggestions: use RawTextQuery to get the suggestion URLs with the same bang
608 # suggestions: use RawTextQuery to get the suggestion URLs with the same bang
609− suggestion_urls = map(lambda suggestion: {
609+ suggestion_urls = list(map(lambda suggestion: {
610− 'url': raw_text_query.changeSearchQuery(suggestion).getFullQuery(),
610+ 'url': raw_text_query.changeSearchQuery(suggestion).getFullQuery(),
611− 'title': suggestion
611+ 'title': suggestion
612− },
612+ },
613− result_container.suggestions)
613+ result_container.suggestions))
614
614
615 correction_urls = list(map(lambda correction: {
615 correction_urls = list(map(lambda correction: {
616 'url': raw_text_query.changeSearchQuery(correction).getFullQuery(),
616 'url': raw_text_query.changeSearchQuery(correction).getFullQuery(),