diff options
author | Adam Tauber <asciimoo@gmail.com> | 2015-09-01 15:14:02 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2015-09-01 15:14:02 +0200 |
commit | 8c4d9b79d5727aa803b88e8181f7edabe46b40c4 (patch) | |
tree | 8d39abd342d81ede9811f85ee6d2e18ff00191d2 | |
parent | 604f32f67276a34a3ead265ff89d3bb807902b26 (diff) | |
download | searxng-8c4d9b79d5727aa803b88e8181f7edabe46b40c4.tar.gz searxng-8c4d9b79d5727aa803b88e8181f7edabe46b40c4.zip |
[fix] engine selection from url
-rw-r--r-- | searx/search.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/search.py b/searx/search.py index ca24581ac..f36552a4a 100644 --- a/searx/search.py +++ b/searx/search.py @@ -391,11 +391,11 @@ class Search(object): load_default_categories = True for pd_name, pd in self.request_data.items(): if pd_name == 'categories': - self.categories.extend(categ.strip() for categ in pd.split(',') if categ in categories) + self.categories.extend(categ for categ in map(unicode.strip, pd.split(',')) if categ in categories) elif pd_name == 'engines': pd_engines = [{'category': engines[engine].categories[0], 'name': engine} - for engine in map(str.strip, pd.split(',')) if engine in engines] + for engine in map(unicode.strip, pd.split(',')) if engine in engines] if pd_engines: self.engines.extend(pd_engines) load_default_categories = False |