mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[fix] measure request duration only if total_time attribute is set - fixes autocompleter
This commit is contained in:
		
							parent
							
								
									060c797739
								
							
						
					
					
						commit
						27e95846ea
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -122,8 +122,8 @@ def request(method, url, **kwargs): | |||
|     # session end | ||||
|     session.close() | ||||
| 
 | ||||
|     # | ||||
|     threadLocal.total_time += time_after_request - time_before_request | ||||
|     if hasattr(threadLocal, 'total_time'): | ||||
|         threadLocal.total_time += time_after_request - time_before_request | ||||
| 
 | ||||
|     return response | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Adam Tauber
						Adam Tauber