[fix] checker: fix engine statistics

Without this commit, the URL /stats/errors shows percentage above 100% after the checker has run.
This commit is contained in:
Alexandre Flament 2021-01-17 16:14:16 +01:00
parent ca76f3119a
commit d473407ec9
3 changed files with 7 additions and 4 deletions

View file

@ -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