swh.lister.gitlab: Fix the total pages reading instruction

This commit is contained in:
Antoine R. Dumont (@ardumont) 2018-07-12 13:52:27 +02:00
parent cd98af7705
commit a69e576c85
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8

View file

@ -60,6 +60,7 @@ class IncrementalGitLabLister(ListerTaskBase):
def run_task(self, *args, **kwargs):
lister = self.new_lister(*args, **kwargs)
total, _, _ = lister.get_pages_information()
_, total_pages, _ = lister.get_pages_information()
# stopping as soon as existing origins for that instance are detected
return lister.run(min_bound=1, max_bound=total, check_existence=True)
return lister.run(min_bound=1, max_bound=total_pages,
check_existence=True)