diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2017-12-06 14:34:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-06 14:34:26 +0100 |
| commit | 49b845051f027cf9d29a20821968103a0f55c9d9 (patch) | |
| tree | 249693fb31423283ee21c5ded4bed844d7250f2e /searx/engines/yacy.py | |
| parent | df0b8ee5270a37642ccf5f42e95b0656aefc7fda (diff) | |
| parent | 4d1770398a6af8902e75c0bd885781584d39e796 (diff) | |
Merge pull request #973 from MarcAbonce/languages
Remove 'all' option from search languages
Diffstat (limited to 'searx/engines/yacy.py')
| -rw-r--r-- | searx/engines/yacy.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/searx/engines/yacy.py b/searx/engines/yacy.py index a62a1296e..c19140bb0 100644 --- a/searx/engines/yacy.py +++ b/searx/engines/yacy.py @@ -51,9 +51,7 @@ def request(query, params): limit=number_of_results, search_type=search_type) - # add language tag if specified - if params['language'] != 'all': - params['url'] += '&lr=lang_' + params['language'].split('-')[0] + params['url'] += '&lr=lang_' + params['language'].split('-')[0] return params |