Skip to content

Commit

Permalink
fix: Fixed incorrect filtering of group members
Browse files Browse the repository at this point in the history
  • Loading branch information
igorhrcek committed Dec 15, 2023
1 parent 5daf523 commit 0eb1e01
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 883 deletions.
4 changes: 2 additions & 2 deletions mailerlite/sdk/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ def get_group_subscribers(self, group_id, **kwargs):
raise TypeError("Got an unknown argument '%s'" % key)
if key == "filter":
for filter_key, filter_value in val.items():
query_params[filter_key] = filter_value
query_params[f"filter[{filter_key}]"] = filter_value
else:
query_params[key] = val

return self.api_client.request(
"GET",
f"{self.base_api_url}/{group_id}/subscribers",
Expand Down
Loading

0 comments on commit 0eb1e01

Please sign in to comment.