mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[mod] searx.search: remove unused global variable number_of_searches
This commit is contained in:
		
							parent
							
								
									edd8dccd07
								
							
						
					
					
						commit
						50e717c452
					
				
					 1 changed files with 0 additions and 4 deletions
				
			
		|  | @ -40,7 +40,6 @@ from searx.exceptions import SearxParameterException | ||||||
| 
 | 
 | ||||||
| logger = logger.getChild('search') | logger = logger.getChild('search') | ||||||
| 
 | 
 | ||||||
| number_of_searches = 0 |  | ||||||
| max_request_timeout = settings.get('outgoing', {}).get('max_request_timeout' or None) | max_request_timeout = settings.get('outgoing', {}).get('max_request_timeout' or None) | ||||||
| if max_request_timeout is None: | if max_request_timeout is None: | ||||||
|     logger.info('max_request_timeout={0}'.format(max_request_timeout)) |     logger.info('max_request_timeout={0}'.format(max_request_timeout)) | ||||||
|  | @ -498,9 +497,6 @@ class Search: | ||||||
|         # init vars |         # init vars | ||||||
|         requests = [] |         requests = [] | ||||||
| 
 | 
 | ||||||
|         # increase number of searches |  | ||||||
|         number_of_searches += 1 |  | ||||||
| 
 |  | ||||||
|         # set default useragent |         # set default useragent | ||||||
|         # user_agent = request.headers.get('User-Agent', '') |         # user_agent = request.headers.get('User-Agent', '') | ||||||
|         user_agent = gen_useragent() |         user_agent = gen_useragent() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Alexandre Flament
						Alexandre Flament