on master help sign in
hide suggestions box if empty

This bug happens only in python3 because map returns an iterator.

commit495ae59b31b6aafae484ecdfb6aece3a84f1ede7 authorMarc Abonce Seguin <marc-abonce@mailbox.org> dateSun 25 Aug 2019, 23:01 (7 years ago) parent5706c12
1 file changed+5−5
searx/webapp.py+5−5
searx/webapp.py+5−5
@@ -606,11 +606,11 @@ def index():
606606 # HTML output format
607607
608608 # suggestions: use RawTextQuery to get the suggestion URLs with the same bang
609− suggestion_urls = map(lambda suggestion: {
610− 'url': raw_text_query.changeSearchQuery(suggestion).getFullQuery(),
611− 'title': suggestion
612− },
613− result_container.suggestions)
609+ suggestion_urls = list(map(lambda suggestion: {
610+ 'url': raw_text_query.changeSearchQuery(suggestion).getFullQuery(),
611+ 'title': suggestion
612+ },
613+ result_container.suggestions))
614614
615615 correction_urls = list(map(lambda correction: {
616616 'url': raw_text_query.changeSearchQuery(correction).getFullQuery(),