Skip to content

Commit

Permalink
Fix single scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Jun 11, 2024
1 parent 139e835 commit 0ff6ed7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions odds/common/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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:
Expand Down

0 comments on commit 0ff6ed7

Please sign in to comment.