From 0ff6ed7ce1f254db3dd1be6c12ae47195aeda18d Mon Sep 17 00:00:00 2001 From: Adam Kariv Date: Tue, 11 Jun 2024 14:30:11 +0300 Subject: [PATCH] Fix single scraper --- odds/common/filters.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/odds/common/filters.py b/odds/common/filters.py index 0059eb4..2adfd40 100644 --- a/odds/common/filters.py +++ b/odds/common/filters.py @@ -64,13 +64,13 @@ async def index(self, dataset: Dataset) -> bool: class DatasetFilterNew(DatasetFilter): - async def consider(self) -> bool: + async def consider(self, dataset: Dataset) -> bool: return not await store.hasDataset(self.dataset.storeId()) class DatasetFilterForce(DatasetFilter): - async def consider(self) -> bool: + async def consider(self, dataset: Dataset) -> bool: return True @@ -79,8 +79,8 @@ def __init__(self, datasetId: str): super().__init__() self.datasetId = datasetId - async def consider(self) -> bool: - return self.dataset.id == self.datasetId + async def consider(self, dataset: Dataset) -> bool: + return dataset.id == self.datasetId class CatalogFilter: