diff options
Diffstat (limited to 'searx')
| -rw-r--r-- | searx/search/__init__.py | 2 | ||||
| -rw-r--r-- | searx/static/themes/simple/.eslintrc.json | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/searx/search/__init__.py b/searx/search/__init__.py index c5f225aa4..e5465880c 100644 --- a/searx/search/__init__.py +++ b/searx/search/__init__.py @@ -54,7 +54,7 @@ def replace_auto_language(search_query: SearchQuery): if search_query.lang != 'auto': return - detected_lang = detect_language(search_query.query, threshold=0.0, only_search_languages=True) + detected_lang = detect_language(search_query.query, threshold=0.3, only_search_languages=True) if detected_lang is None: # fallback to 'all' if no language has been detected search_query.lang = 'all' diff --git a/searx/static/themes/simple/.eslintrc.json b/searx/static/themes/simple/.eslintrc.json index 57d227f3d..df53fcce8 100644 --- a/searx/static/themes/simple/.eslintrc.json +++ b/searx/static/themes/simple/.eslintrc.json @@ -18,7 +18,6 @@ "brace-style": ["error", "1tbs", { "allowSingleLine": true }], "curly": ["error", "multi-line"], "block-spacing": ["error", "always"], - "comma-spacing": ["error", { "before": false, "after": true }], "dot-location": ["error", "property"], "key-spacing": ["error", { "beforeColon": false, "afterColon": true }], "spaced-comment": ["error", "always", { |