mirror of
https://github.com/searxng/searxng.git
synced 2024-08-23 22:50:26 +02:00
[fix] suspend end time check
This commit is contained in:
parent
6c7c6ba695
commit
7d26b3f8f8
@ -274,7 +274,8 @@ class Search(object):
|
|||||||
engine = engines[selected_engine['name']]
|
engine = engines[selected_engine['name']]
|
||||||
|
|
||||||
# skip suspended engines
|
# skip suspended engines
|
||||||
if engine.suspend_end_time and engine.suspend_end_time <= time():
|
if engine.suspend_end_time >= time():
|
||||||
|
logger.debug('Engine currently suspended: %s', selected_engine['name'])
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# if paging is not supported, skip
|
# if paging is not supported, skip
|
||||||
|
Loading…
Reference in New Issue
Block a user