File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -210,8 +210,9 @@ def get_all(
210
210
:param sort: property by which to sort the results, by default : `username`
211
211
:returns: a list of all the users in Atlan
212
212
"""
213
- response : UserResponse = self .get (offset = offset , limit = limit , sort = sort )
214
- return [user for user in response ]
213
+ if response := self .get (offset = offset , limit = limit , sort = sort ):
214
+ return response .records # type: ignore
215
+ return None # type: ignore
215
216
216
217
@validate_arguments
217
218
def get_by_email (
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ def _get_next_page(self):
255
255
self ._criteria .offset = self ._start
256
256
self ._criteria .limit = self ._size
257
257
raw_json = self ._client ._call_api (
258
- api = self ._endpoint ,
258
+ api = self ._endpoint . format_path_with_params () ,
259
259
query_params = self ._criteria .query_params ,
260
260
)
261
261
if not raw_json .get ("records" ):
You can’t perform that action at this time.
0 commit comments