feat: 增强日历功能并集成 AgentScope 代理服务
This commit is contained in:
@@ -365,7 +365,11 @@ def _list_auth_users(client: Any) -> list[Any]:
|
||||
|
||||
while page <= max_pages:
|
||||
response = client.auth.admin.list_users(page=page, per_page=100)
|
||||
batch = list(getattr(response, "users", []))
|
||||
batch = (
|
||||
list(response)
|
||||
if isinstance(response, list)
|
||||
else list(getattr(response, "users", []))
|
||||
)
|
||||
users.extend(batch)
|
||||
|
||||
if len(batch) < 100:
|
||||
|
||||
Reference in New Issue
Block a user