diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2021-01-20 18:48:29 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-20 18:48:29 +0000 |
| commit | f310305c54c3cd1d9fc74f09453294edbd2b5486 (patch) | |
| tree | 2f42e532b22e945c97813b8fc1a5fd440eb8569c /searx/search/processors | |
| parent | 0495e15df4b5e88adef24a9b5c3dbb35e4fac072 (diff) | |
| parent | 73c86f9bf233aa4f265d1c01ea94d01563e299f8 (diff) | |
Merge pull request #2481 from dalf/mod-check
Mod check
Diffstat (limited to 'searx/search/processors')
| -rw-r--r-- | searx/search/processors/online.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/search/processors/online.py b/searx/search/processors/online.py index 0ceb0adf2..d79edd542 100644 --- a/searx/search/processors/online.py +++ b/searx/search/processors/online.py @@ -239,14 +239,14 @@ class OnlineProcessor(EngineProcessor): 'test': ['unique_results'] } - if getattr(self.engine, 'lang', False): + if getattr(self.engine, 'supported_languages', []): tests['lang_fr'] = { 'matrix': {'query': 'paris', 'lang': 'fr'}, - 'result_container': ['not_empty', ('has_lang', 'fr')], + 'result_container': ['not_empty', ('has_language', 'fr')], } tests['lang_en'] = { 'matrix': {'query': 'paris', 'lang': 'en'}, - 'result_container': ['not_empty', ('has_lang', 'en')], + 'result_container': ['not_empty', ('has_language', 'en')], } if getattr(self.engine, 'safesearch', False): |