File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ def __init__(
130
130
base ,
131
131
http_session ,
132
132
filters = None ,
133
- limit = 0 ,
133
+ limit = None ,
134
134
key = None ,
135
135
token = None ,
136
136
private_key = None ,
@@ -307,6 +307,8 @@ def get(self, add_params=None):
307
307
endpoint.
308
308
"""
309
309
310
+ if not add_params and self .limit is not None :
311
+ add_params = {"limit" : self .limit }
310
312
req = self ._make_call (add_params = add_params )
311
313
if isinstance (req , dict ) and req .get ("results" ) is not None :
312
314
self .count = req ["count" ]
@@ -323,7 +325,8 @@ def get(self, add_params=None):
323
325
ret .extend (req ["results" ])
324
326
else :
325
327
self .concurrent_get (ret , page_size , page_offsets )
326
- return ret
328
+ for i in ret :
329
+ yield i
327
330
first_run = True
328
331
for i in req ["results" ]:
329
332
yield i
You can’t perform that action at this time.
0 commit comments