diff --git a/mmcli/mmcli.py b/mmcli/mmcli.py index edb30a0..1c33468 100755 --- a/mmcli/mmcli.py +++ b/mmcli/mmcli.py @@ -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)