From d2ae47f42e70c8eff8d15813afa239918212d0bf Mon Sep 17 00:00:00 2001 From: Pablo Orviz Date: Fri, 18 Oct 2024 10:25:47 +0200 Subject: [PATCH] Use super() to make EvaluatorBase attributes available --- plugins/epos/plugin.py | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/plugins/epos/plugin.py b/plugins/epos/plugin.py index 50f20e9..1d1fdc2 100644 --- a/plugins/epos/plugin.py +++ b/plugins/epos/plugin.py @@ -43,18 +43,12 @@ class Plugin(EvaluatorBase): """ - name = "epos" - def __init__(self, item_id, oai_base=None, lang="en", config=None, name="epos"): - # FIXME: Disable calls to parent class until a EvaluatorBase class is implemented - # super().__init__(item_id, oai_base, lang, self.name) - # global _ - # _ = super().translation() - - self.name = name - self.item_id = item_id - self.api_endpoint = oai_base - self.config = config + super().__init__( + item_id, oai_base=oai_base, lang=lang, config=config, name=name + ) + + self.api_endpoint = self.oai_base logger.debug("Using FAIR-EVA's plugin: %s" % self.name)