Skip to content
Snippets Groups Projects
Commit 4b1f49ac authored by Franck Bret's avatar Franck Bret
Browse files

Adapt and rebase

'url' and 'instance' are mandatory
Add elm lister entry to pyproject.toml
parent 3a1beae3
No related branches found
No related tags found
1 merge request!490Elm Lister
......@@ -40,6 +40,7 @@ testing = {file = ["requirements-test.txt"]}
"swh.lister.crates" = "swh.lister.crates:register"
"swh.lister.debian" = "swh.lister.debian:register"
"swh.lister.dlang" = "swh.lister.dlang:register"
"swh.lister.elm" = "swh.lister.elm:register"
"swh.lister.gitea" = "swh.lister.gitea:register"
"swh.lister.github" = "swh.lister.github:register"
"swh.lister.gitiles" = "swh.lister.gitiles:register"
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment