File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,17 @@ def __init__(__pydantic_self__, **data: Any) -> None:
215
215
["from_" , "size" , "track_total_hits" , "sort" ]
216
216
)
217
217
218
+ @property
219
+ def query_params (self ) -> dict :
220
+ qp : Dict [str , object ] = {}
221
+ if self .post_filter :
222
+ qp ["filter" ] = self .post_filter
223
+ if self .sort :
224
+ qp ["sort" ] = self .sort
225
+ qp ["from_" ] = self .from_
226
+ qp ["size" ] = self .size
227
+ return qp
228
+
218
229
219
230
class WorkflowSearchResponse (AtlanObject ):
220
231
_size : int = PrivateAttr ()
@@ -248,7 +259,7 @@ def _get_next_page(self):
248
259
self ._criteria .size = self ._size
249
260
raw_json = self ._client ._call_api (
250
261
api = self ._endpoint .format_path_with_params (),
251
- query_params = self ._criteria ,
262
+ query_params = self ._criteria . query_params ,
252
263
)
253
264
if not raw_json .get ("records" ):
254
265
self .records = []
You can’t perform that action at this time.
0 commit comments