diff options
author | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2019-08-25 23:01:30 -0700 |
---|---|---|
committer | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2019-12-21 22:47:08 -0600 |
commit | 495ae59b31b6aafae484ecdfb6aece3a84f1ede7 (patch) | |
tree | 3f8262ed3e73fca45f86e9c93c924e442d2094be /searx/webapp.py | |
parent | 5706c12fba98e169c7c76a4d3c29aabf48242d63 (diff) | |
download | searxng-495ae59b31b6aafae484ecdfb6aece3a84f1ede7.tar.gz searxng-495ae59b31b6aafae484ecdfb6aece3a84f1ede7.zip |
hide suggestions box if empty
This bug happens only in python3
because map returns an iterator.
Diffstat (limited to 'searx/webapp.py')
-rw-r--r-- | searx/webapp.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 7cf4106d3..212c874c9 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -606,11 +606,11 @@ def index(): # HTML output format # suggestions: use RawTextQuery to get the suggestion URLs with the same bang - suggestion_urls = map(lambda suggestion: { - 'url': raw_text_query.changeSearchQuery(suggestion).getFullQuery(), - 'title': suggestion - }, - result_container.suggestions) + suggestion_urls = list(map(lambda suggestion: { + 'url': raw_text_query.changeSearchQuery(suggestion).getFullQuery(), + 'title': suggestion + }, + result_container.suggestions)) correction_urls = list(map(lambda correction: { 'url': raw_text_query.changeSearchQuery(correction).getFullQuery(), |