From b10d691bb3488bc65ae64ec089b0ba0e8bd03668 Mon Sep 17 00:00:00 2001 From: Midgard Date: Sat, 23 Nov 2024 00:35:57 +0100 Subject: [PATCH] Fix regression --- mmcli/mmcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)