fixed problem where cursor stops after 10k results
This commit is contained in:
parent
c199b12c59
commit
d4f104b8a6
1 changed files with 3 additions and 3 deletions
|
|
@ -398,9 +398,6 @@ class Twython(EndpointsMixin, object):
|
|||
if not content:
|
||||
raise StopIteration
|
||||
|
||||
if function.iter_mode == 'cursor' and content['next_cursor_str'] == '0':
|
||||
raise StopIteration
|
||||
|
||||
if hasattr(function, 'iter_key'):
|
||||
results = content.get(function.iter_key)
|
||||
else:
|
||||
|
|
@ -409,6 +406,9 @@ class Twython(EndpointsMixin, object):
|
|||
for result in results:
|
||||
yield result
|
||||
|
||||
if function.iter_mode == 'cursor' and content['next_cursor_str'] == '0':
|
||||
raise StopIteration
|
||||
|
||||
try:
|
||||
if function.iter_mode == 'id':
|
||||
if not 'max_id' in params:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue