swh.lister.paging_lister: Improve lister's base class name
Also drop the SWH prefix as this is redundant.
This commit is contained in:
parent
4c4aa0ead2
commit
b6c5865ab1
3 changed files with 7 additions and 7 deletions
|
@ -6,11 +6,11 @@ import random
|
|||
import re
|
||||
import time
|
||||
|
||||
from ..core.paging_lister import SWHPagingHttpLister
|
||||
from ..core.paging_lister import PageByPageHttpLister
|
||||
from .models import GitLabModel
|
||||
|
||||
|
||||
class GitLabLister(SWHPagingHttpLister):
|
||||
class GitLabLister(PageByPageHttpLister):
|
||||
# Template path expecting an integer that represents the page id
|
||||
PATH_TEMPLATE = '/projects?page=%d&order_by=id&sort=asc&simple=true'
|
||||
API_URL_INDEX_RE = re.compile(r'^.*/projects.*page=(\d+).*')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue