Browse Source
Merge pull request #212 from Miiha/feature/pagination-performance
Reduce amount of paginated requests.
pull/224/head
Marcos Pereira
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
keycloak/keycloak_admin.py
|
@ -223,6 +223,8 @@ class KeycloakAdmin: |
|
|
if not partial_results: |
|
|
if not partial_results: |
|
|
break |
|
|
break |
|
|
results.extend(partial_results) |
|
|
results.extend(partial_results) |
|
|
|
|
|
if len(partial_results) < query['max']: |
|
|
|
|
|
break |
|
|
page += 1 |
|
|
page += 1 |
|
|
return results |
|
|
return results |
|
|
|
|
|
|
|
|