Skip to content

Commit 72ffa01

Browse files
committed
fix: make query kwargs consistent between call in init and next
1 parent 1d011ac commit 72ffa01

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gitlab/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,15 +777,16 @@ class GitlabList(object):
777777

778778
def __init__(self, gl, url, query_data, get_next=True, **kwargs):
779779
self._gl = gl
780-
self._query(url, query_data, **kwargs)
781-
self._get_next = get_next
782780

783781
# Preserve kwargs for subsequent queries
784782
if kwargs is None:
785783
self._kwargs = {}
786784
else:
787785
self._kwargs = kwargs.copy()
788786

787+
self._query(url, query_data, **self._kwargs)
788+
self._get_next = get_next
789+
789790
def _query(self, url, query_data=None, **kwargs):
790791
query_data = query_data or {}
791792
result = self._gl.http_request("get", url, query_data=query_data, **kwargs)

0 commit comments

Comments
 (0)