Fix regression
This commit is contained in:
parent
ed55f6d115
commit
b10d691bb3
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ def get_posts_for_channel(self, channel_id: str, progress=lambda x: None, after=
|
|||
))
|
||||
post_ids |= set(order)
|
||||
progress(len(posts))
|
||||
if len(order) < per_page or len(posts) >= maximum:
|
||||
if len(order) < per_page or (maximum is not None and len(posts) >= maximum):
|
||||
break
|
||||
page += 1
|
||||
sleep(0.1)
|
||||
|
|
Loading…
Reference in a new issue