summaryrefslogtreecommitdiff
path: root/searx/engines/swisscows.py
diff options
context:
space:
mode:
authormarc <a01200356@itesm.mx>2016-08-05 23:34:56 -0500
committermarc <a01200356@itesm.mx>2016-12-13 19:32:00 -0600
commit149802c56926bf48520c98932c4c36b8152b3d2d (patch)
treef450a584a785c31a1c118be29b3039f779a0cb70 /searx/engines/swisscows.py
parente58949b76fac7aa93341523ff0e2f35e0a03e057 (diff)
downloadsearxng-149802c56926bf48520c98932c4c36b8152b3d2d.tar.gz
searxng-149802c56926bf48520c98932c4c36b8152b3d2d.zip
[enh] add supported_languages on engines and auto-generate languages.py
Diffstat (limited to 'searx/engines/swisscows.py')
-rw-r--r--searx/engines/swisscows.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/swisscows.py b/searx/engines/swisscows.py
index 72184e428..68632a15a 100644
--- a/searx/engines/swisscows.py
+++ b/searx/engines/swisscows.py
@@ -36,8 +36,8 @@ def request(query, params):
ui_language = 'browser'
region = 'browser'
else:
- region = params['language'].replace('_', '-')
- ui_language = params['language'].split('_')[0]
+ region = params['language']
+ ui_language = params['language'].split('-')[0]
search_path = search_string.format(
query=urlencode({'query': query,