summaryrefslogtreecommitdiff
path: root/searx/webadapter.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-10-01 11:29:31 +0200
committerAlexandre Flament <alex@al-f.net>2020-10-01 11:29:31 +0200
commit507896c1159ae72dc1e45a4d0cf40f4654209ec0 (patch)
tree28b991a13f5ce9b562c33d6c4554834911dde083 /searx/webadapter.py
parentfd5fe369844e481aecc0d731b08ee8b29c9b47e6 (diff)
downloadsearxng-507896c1159ae72dc1e45a4d0cf40f4654209ec0.tar.gz
searxng-507896c1159ae72dc1e45a4d0cf40f4654209ec0.zip
[mod] preferences.py: check language setting with a regex instead of match_language
Diffstat (limited to 'searx/webadapter.py')
-rw-r--r--searx/webadapter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/webadapter.py b/searx/webadapter.py
index 835cf2276..b9764c9ee 100644
--- a/searx/webadapter.py
+++ b/searx/webadapter.py
@@ -1,6 +1,7 @@
from typing import Dict, List, Optional, Tuple
from searx.exceptions import SearxParameterException
-from searx.query import RawTextQuery, VALID_LANGUAGE_CODE
+from searx.webutils import VALID_LANGUAGE_CODE
+from searx.query import RawTextQuery
from searx.engines import categories, engines
from searx.search import SearchQuery, EngineRef
from searx.preferences import Preferences