diff --git a/src/pyadonis/classes/adonis.py b/src/pyadonis/classes/adonis.py index 19ce725..5102a3c 100644 --- a/src/pyadonis/classes/adonis.py +++ b/src/pyadonis/classes/adonis.py @@ -129,12 +129,12 @@ class Adonis: return result - def getRequirements(self, view): + def getRequirements(self, view, paginate_by=100): requirements = [] pnum = 1 while True: - page = self.getCrewListView(view, pagination="True", paginate_by="100", page=str(pnum)) + page = self.getCrewListView(view, pagination="True", paginate_by=str(paginate_by), page=str(pnum)) for record in json.loads(page["Result"]): requirements.append((record["PIN"], record["Document code"]))