From 22da73b8bb7a995e3bb3823ae9afbaca04690274 Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Sat, 13 Sep 2014 18:44:11 +0200 Subject: [PATCH] little update update comments in search.py --- searx/search.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/searx/search.py b/searx/search.py index c9baf6119..d2a9dd42f 100644 --- a/searx/search.py +++ b/searx/search.py @@ -251,7 +251,7 @@ class Search(object): if query_parts[0].startswith(':'): lang = query_parts[0][1:].lower() - # check if any language-code equal with declared language-codes + # check if any language-code is equal with declared language-codes for lc in language_codes: lang_id, lang_name, country = map(str.lower, lc) @@ -268,21 +268,21 @@ class Search(object): elif query_parts[0].startswith('!'): prefix = query_parts[0][1:].replace('_', ' ') - # check if prefix equal with engine shortcut + # check if prefix is equal with engine shortcut if prefix in engine_shortcuts\ and not engine_shortcuts[prefix] in self.blocked_engines: modified = True self.engines.append({'category': 'none', 'name': engine_shortcuts[prefix]}) - # check if prefix equal with engine name + # check if prefix is equal with engine name elif prefix in engines\ and not prefix in self.blocked_engines: modified = True self.engines.append({'category': 'none', 'name': prefix}) - # check if prefix equal with categorie name + # check if prefix is equal with categorie name elif prefix in categories: modified = True # using all engines for that search, which are declared under that categorie name @@ -305,7 +305,7 @@ class Search(object): results = {} suggestions = set() - # increase number of active searches + # increase number of searches number_of_searches += 1 # set default useragent