commit: 7d26b3f8f8659491d3da94aeb71bd0d9b5f7a257
parent: 6c7c6ba695a7d9dce9656e407a0da034415c5e63
Author: Adam Tauber <asciimoo@gmail.com>
Date: Sun, 6 Nov 2016 02:51:14 +0100
[fix] suspend end time check
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/searx/search.py b/searx/search.py
@@ -274,7 +274,8 @@ class Search(object):
engine = engines[selected_engine['name']]
# 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
# if paging is not supported, skip