diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2017-12-31 09:49:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-31 09:49:08 +0100 |
commit | 79d2ca4bcc29fa0e30a44940adb7491a84e8b573 (patch) | |
tree | 41366abece0222cd4045dd5c12c43ec0aff018cf | |
parent | 7efbc30b9d8cf8ea856b68ab85b9cd2340121358 (diff) | |
parent | 3b1d1dd8b9fc80a10cf52641701f7e1e6a8277f1 (diff) | |
download | gitlab-79d2ca4bcc29fa0e30a44940adb7491a84e8b573.tar.gz |
Merge pull request #406 from ericfrederich/pagination
Allow per_page to be used with generators.
-rw-r--r-- | gitlab/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py index aac4837..e7b09a4 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -743,7 +743,7 @@ class Gitlab(object): 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)) |