From 0badee73d919aece92134fc942540c83294861f0 Mon Sep 17 00:00:00 2001 From: Dale Wahl Date: Mon, 27 Jan 2025 15:19:42 +0100 Subject: [PATCH] bsky: no progress bar if no max_posts --- datasources/bsky/search_bsky.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datasources/bsky/search_bsky.py b/datasources/bsky/search_bsky.py index 2670a9543..f0749646c 100644 --- a/datasources/bsky/search_bsky.py +++ b/datasources/bsky/search_bsky.py @@ -378,7 +378,8 @@ def get_items(self, query): # Check if there is a cursor for the next page cursor = response['cursor'] - self.dataset.update_progress(total_posts / (max_posts * num_queries)) + if max_posts != 0: + self.dataset.update_progress(total_posts / (max_posts * num_queries)) if 0 < max_posts <= rank: self.dataset.update_status(