diff options
author | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-09-13 18:44:11 +0200 |
---|---|---|
committer | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-09-13 18:44:11 +0200 |
commit | 22da73b8bb7a995e3bb3823ae9afbaca04690274 (patch) | |
tree | 0a5a525ebd013c27b6cb9c1f7a4e7d506a67a330 /searx/search.py | |
parent | bc30c4f4ade9a6d8322c1b46680f998ebf1cda0b (diff) | |
download | searxng-22da73b8bb7a995e3bb3823ae9afbaca04690274.tar.gz searxng-22da73b8bb7a995e3bb3823ae9afbaca04690274.zip |
little update update comments in search.py
Diffstat (limited to 'searx/search.py')
-rw-r--r-- | searx/search.py | 10 |
1 files 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 |