summaryrefslogtreecommitdiff
path: root/searx/search
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-01-17 16:56:36 +0100
committerAlexandre Flament <alex@al-f.net>2021-01-18 08:19:53 +0100
commit67a1aab0d5b8ab93b60be5da2390039f6c861505 (patch)
tree0199011d65c8783ad4b78abd2770290708ef6751 /searx/search
parentd473407ec97107022ccbdd366559001b1ec162d8 (diff)
downloadsearxng-67a1aab0d5b8ab93b60be5da2390039f6c861505.tar.gz
searxng-67a1aab0d5b8ab93b60be5da2390039f6c861505.zip
[fix] /stats/checker : remove the timestamp field when the checker is disabled
Diffstat (limited to 'searx/search')
-rw-r--r--searx/search/checker/background.py2
1 files changed, 1 insertions, 1 deletions
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):