diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-01-17 16:14:16 +0100 |
|---|---|---|
| committer | Alexandre Flament <alex@al-f.net> | 2021-01-18 08:19:44 +0100 |
| commit | d473407ec97107022ccbdd366559001b1ec162d8 (patch) | |
| tree | 8924f2d081963dc7d65b1a4beaeda7214a6874f5 /searx/search/processors | |
| parent | ca76f3119a4d66cb8aa74829ca5f0a0a72f0f96b (diff) | |
[fix] checker: fix engine statistics
Without this commit, the URL /stats/errors shows percentage above 100% after the checker has run.
Diffstat (limited to 'searx/search/processors')
| -rw-r--r-- | searx/search/processors/abstract.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/search/processors/abstract.py b/searx/search/processors/abstract.py index eb8d296ec..3a853d49e 100644 --- a/searx/search/processors/abstract.py +++ b/searx/search/processors/abstract.py @@ -1,13 +1,13 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -from abc import abstractmethod +from abc import abstractmethod, ABC from searx import logger logger = logger.getChild('searx.search.processor') -class EngineProcessor: +class EngineProcessor(ABC): def __init__(self, engine, engine_name): self.engine = engine |