From a69e576c85ef9cccc0abcd616aabfc069ac994f4 Mon Sep 17 00:00:00 2001 From: "Antoine R. Dumont (@ardumont)" Date: Thu, 12 Jul 2018 13:52:27 +0200 Subject: [PATCH] swh.lister.gitlab: Fix the total pages reading instruction --- swh/lister/gitlab/tasks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/swh/lister/gitlab/tasks.py b/swh/lister/gitlab/tasks.py index e739e06..c0dcfb6 100644 --- a/swh/lister/gitlab/tasks.py +++ b/swh/lister/gitlab/tasks.py @@ -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)