Fix regression

This commit is contained in:
Midgard 2024-11-23 00:35:57 +01:00
parent ed55f6d115
commit b10d691bb3
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -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)