Skip to content

Commit

Permalink
Merge pull request #406 from ericfrederich/pagination
Browse files Browse the repository at this point in the history
Allow per_page to be used with generators.
  • Loading branch information
Gauvain Pocentek committed Dec 31, 2017
2 parents 7efbc30 + 3b1d1dd commit 79d2ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlab/__init__.py
Expand Up @@ -743,7 +743,7 @@ def http_list(self, path, query_data={}, as_list=None, **kwargs):
if get_all is True:
return list(GitlabList(self, url, query_data, **kwargs))

if 'page' in kwargs or 'per_page' in kwargs or as_list is True:
if 'page' in kwargs or as_list is True:
# pagination requested, we return a list
return list(GitlabList(self, url, query_data, get_next=False,
**kwargs))
Expand Down

0 comments on commit 79d2ca4

Please sign in to comment.