Skip to content

Commit

Permalink
Allow per_page to be used with generators.
Browse files Browse the repository at this point in the history
Fixes #405
  • Loading branch information
ericfrederich committed Dec 26, 2017
1 parent 7efbc30 commit 3b1d1dd
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 3b1d1dd

Please sign in to comment.