Skip to content

Commit

Permalink
bsky: no progress bar if no max_posts
Browse files Browse the repository at this point in the history
  • Loading branch information
dale-wahl committed Jan 27, 2025
1 parent 115a3c1 commit 0badee7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datasources/bsky/search_bsky.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0badee7

Please sign in to comment.