Skip to content

Commit

Permalink
Fixes Issue #625: If the kwarg is cursor_pagination, do not augment U…
Browse files Browse the repository at this point in the history
…RL path (#626)
  • Loading branch information
cryptomail committed Apr 30, 2024
1 parent c1fc2b8 commit 47714f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zenpy/lib/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def __call__(self, **kwargs):
endpoint_path = '{}/email/{}'.format(self.endpoint, value)
elif self.endpoint == 'departments' and key == 'name':
endpoint_path = '{}/name/{}'.format(self.endpoint, value)
else:
elif key != 'cursor_pagination':
endpoint_path = "{}/{}".format(self.endpoint, value)
break
return Url(endpoint_path, params=params)
Expand Down

0 comments on commit 47714f5

Please sign in to comment.