diff options
author | asciimoo <asciimoo@gmail.com> | 2014-02-09 11:35:52 +0100 |
---|---|---|
committer | asciimoo <asciimoo@gmail.com> | 2014-02-09 11:35:52 +0100 |
commit | 9ede9b955d1c892ed2c0ebeaa0b79d28bae75ac0 (patch) | |
tree | f717b6678a89acf1b631470802272d42442c7473 /searx/search.py | |
parent | 9b4d60972a140b7751aa2b06b04d8e22ad5340d9 (diff) | |
download | searxng-9ede9b955d1c892ed2c0ebeaa0b79d28bae75ac0.tar.gz searxng-9ede9b955d1c892ed2c0ebeaa0b79d28bae75ac0.zip |
[fix] language query string comparison
Diffstat (limited to 'searx/search.py')
-rw-r--r-- | searx/search.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/search.py b/searx/search.py index 79a82f0b1..f71adb2aa 100644 --- a/searx/search.py +++ b/searx/search.py @@ -78,7 +78,7 @@ class Search(object): query_parts = self.query.split() modified = False if query_parts[0].startswith(':'): - lang = query_parts[0][1:] + lang = query_parts[0][1:].lower() for lc in language_codes: lang_id, lang_name, country = map(str.lower, lc) |