summaryrefslogtreecommitdiff
path: root/searx/search.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-09-14 10:15:44 +0200
committerAlexandre Flament <alex@al-f.net>2020-09-22 12:36:26 +0200
commit50e717c452f46041b17c676b9b4512b15c12ff5a (patch)
tree6ef7678ba10449ad58369c6d027834ab79e3016c /searx/search.py
parentedd8dccd07d5c9bbd5d73c74ee98d0a7ee585dd0 (diff)
[mod] searx.search: remove unused global variable number_of_searches
Diffstat (limited to 'searx/search.py')
-rw-r--r--searx/search.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/searx/search.py b/searx/search.py
index 9c1c19446..a5c3485b6 100644
--- a/searx/search.py
+++ b/searx/search.py
@@ -40,7 +40,6 @@ from searx.exceptions import SearxParameterException
logger = logger.getChild('search')
-number_of_searches = 0
max_request_timeout = settings.get('outgoing', {}).get('max_request_timeout' or None)
if max_request_timeout is None:
logger.info('max_request_timeout={0}'.format(max_request_timeout))
@@ -498,9 +497,6 @@ class Search:
# init vars
requests = []
- # increase number of searches
- number_of_searches += 1
-
# set default useragent
# user_agent = request.headers.get('User-Agent', '')
user_agent = gen_useragent()