diff options
| author | Brendan Batliner <brendan.batliner@gmail.com> | 2021-04-07 10:41:35 -0500 |
|---|---|---|
| committer | Brendan Batliner <brendan.batliner@gmail.com> | 2021-04-07 12:05:12 -0500 |
| commit | ca2c3c9dee5dc61ea12af5b39d51b1606da32f9c (patch) | |
| tree | db46a9bb2b5999b461818ca47a451bad1632a140 | |
| parent | 1995361d9a767ad5af5338f4555fa5a3914c7374 (diff) | |
| download | gitlab-ca2c3c9dee5dc61ea12af5b39d51b1606da32f9c.tar.gz | |
fix: only add query_parameters to GitlabList once
Fixes #1386
| -rw-r--r-- | gitlab/client.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gitlab/client.py b/gitlab/client.py index 7927b3f..d78f4c7 100644 --- a/gitlab/client.py +++ b/gitlab/client.py @@ -821,6 +821,9 @@ class GitlabList(object): self._query(url, query_data, **self._kwargs) self._get_next = get_next + # Remove query_parameters from kwargs, which are saved via the `next` URL + self._kwargs.pop("query_parameters", None) + def _query( self, url: str, query_data: Optional[Dict[str, Any]] = None, **kwargs: Any ) -> None: |
