Skip to content

Commit

Permalink
default admin option for user_list_paginate
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonChen666 committed Sep 14, 2023
1 parent 66c5bfc commit d6461a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synadm/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def user_list(self, _from, _limit, _guests, _deactivated,
return self.query("get", "v2/users", params=params)

def user_list_paginate(self, _limit, _guests, _deactivated,
_name, _user_id, _from="0"):
_name, _user_id, _from="0", admin=None):
# documentation is mostly duplicated from user_list...
"""Yields API responses for all of the pagination.
Expand All @@ -468,7 +468,7 @@ def user_list_paginate(self, _limit, _guests, _deactivated,
"""
while _from is not None:
response = self.user_list(_from, _limit, _guests, _deactivated,
_name, _user_id, None)
_name, _user_id, admin)
yield response
_from = response.get("next_token", None)

Expand Down

0 comments on commit d6461a7

Please sign in to comment.