From 9ede9b955d1c892ed2c0ebeaa0b79d28bae75ac0 Mon Sep 17 00:00:00 2001 From: asciimoo Date: Sun, 9 Feb 2014 11:35:52 +0100 Subject: [PATCH] [fix] language query string comparison --- searx/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/search.py b/searx/search.py index 79a82f0b..f71adb2a 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)