Adapt and rebase

'url' and 'instance' are mandatory
Add elm lister entry to pyproject.toml
This commit is contained in:
Franck Bret 2023-12-18 12:02:46 +01:00
parent 3a1beae36e
commit 4b1f49ac22
2 changed files with 5 additions and 2 deletions

View file

@ -32,6 +32,8 @@ class ElmLister(StatelessLister[ElmListerPage]):
self,
scheduler: SchedulerInterface,
credentials: Optional[CredentialsType] = None,
url: str = SEARCH_URL,
instance: str = INSTANCE,
max_origins_per_page: Optional[int] = None,
max_pages: Optional[int] = None,
enable_origins: bool = True,
@ -39,8 +41,8 @@ class ElmLister(StatelessLister[ElmListerPage]):
super().__init__(
scheduler=scheduler,
credentials=credentials,
instance=self.INSTANCE,
url=self.SEARCH_URL,
url=url,
instance=instance,
max_origins_per_page=max_origins_per_page,
max_pages=max_pages,
enable_origins=enable_origins,