swh.lister.gitlab: Change the default sort order using id

Related T989
This commit is contained in:
Antoine R. Dumont (@ardumont) 2018-07-03 16:26:12 +02:00
parent b84db26bee
commit d9d582f7eb
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8

View file

@ -12,7 +12,7 @@ from .models import GitLabModel
class GitLabLister(SWHIndexingHttpLister):
# Path to give and mentioning the last id for the next page
PATH_TEMPLATE = '/projects?page=%d'
PATH_TEMPLATE = '/projects?page=%d&order_by=id&sort=asc&simple=true'
# gitlab api do not have an indexable identifier so using the page
# id
API_URL_INDEX_RE = re.compile(r'^.*/projects.*\&page=(\d+).*')