diff --git a/swh/lister/sourceforge/lister.py b/swh/lister/sourceforge/lister.py index 909f0b513b84e5be5df63b5e325dd2e443fd0ca4..6a00c5f90220423d676a99968861bc4a7adfa3f3 100644 --- a/swh/lister/sourceforge/lister.py +++ b/swh/lister/sourceforge/lister.py @@ -20,7 +20,7 @@ from swh.scheduler.interface import SchedulerInterface from swh.scheduler.model import ListedOrigin from .. import USER_AGENT -from ..pattern import Lister +from ..pattern import CredentialsType, Lister logger = logging.getLogger(__name__) @@ -108,9 +108,17 @@ class SourceForgeLister(Lister[SourceForgeListerState, SourceForgeListerPage]): # Part of the lister API, that identifies this lister LISTER_NAME = "sourceforge" - def __init__(self, scheduler: SchedulerInterface, incremental: bool = False): + def __init__( + self, + scheduler: SchedulerInterface, + incremental: bool = False, + credentials: Optional[CredentialsType] = None, + ): super().__init__( - scheduler=scheduler, url="https://sourceforge.net", instance="main" + scheduler=scheduler, + url="https://sourceforge.net", + instance="main", + credentials=credentials, ) # Will hold the currently saved "last modified" dates to compare against our