forked from zaclys/searxng
[fix] measure request duration only if total_time attribute is set - fixes autocompleter
This commit is contained in:
parent
060c797739
commit
27e95846ea
|
@ -122,7 +122,7 @@ def request(method, url, **kwargs):
|
|||
# session end
|
||||
session.close()
|
||||
|
||||
#
|
||||
if hasattr(threadLocal, 'total_time'):
|
||||
threadLocal.total_time += time_after_request - time_before_request
|
||||
|
||||
return response
|
||||
|
|
Loading…
Reference in New Issue