swh.lister.paging_lister: Improve lister's base class name

Also drop the SWH prefix as this is redundant.
This commit is contained in:
Antoine R. Dumont (@ardumont) 2018-07-11 15:36:56 +02:00
parent 4c4aa0ead2
commit b6c5865ab1
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8
3 changed files with 7 additions and 7 deletions

View file

@ -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+).*')