github: make GitHubLister's api_baseurl init argument optional
This commit is contained in:
parent
8950b0b32d
commit
b87cd5d309
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ from swh.lister.github.models import GitHubModel
|
|||
class GitHubLister(IndexingHttpLister):
|
||||
PATH_TEMPLATE = '/repositories?since=%d'
|
||||
MODEL = GitHubModel
|
||||
DEFAULT_URL = 'https://api.github.com'
|
||||
API_URL_INDEX_RE = re.compile(r'^.*/repositories\?since=(\d+)')
|
||||
LISTER_NAME = 'github'
|
||||
instance = 'github' # There is only 1 instance of such lister
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue