From 67a1aab0d5b8ab93b60be5da2390039f6c861505 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sun, 17 Jan 2021 16:56:36 +0100 Subject: [PATCH] [fix] /stats/checker : remove the timestamp field when the checker is disabled --- searx/search/checker/background.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/search/checker/background.py b/searx/search/checker/background.py index e41bff5f5..22a51b8bb 100644 --- a/searx/search/checker/background.py +++ b/searx/search/checker/background.py @@ -98,7 +98,7 @@ def initialize(): signal.signal(signal.SIGUSR1, _signal_handler) # disabled by default - _set_result({'status': 'disabled'}) + _set_result({'status': 'disabled'}, include_timestamp=False) # special case when debug is activate if searx_debug and settings.get('checker', {}).get('off_when_debug', True):