Skip to content

Commit

Permalink
remove check for total number of artworks being 0
Browse files Browse the repository at this point in the history
  • Loading branch information
modhurita committed Feb 1, 2024
1 parent 141f294 commit 29060b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions artscraper/find_artworks.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,7 @@ def _click_on_right_arrow(parent_element):
# Initialize count of number of iterations for which the number of artworks remains the same
n_tries = 0

while (len(list_links) < total_num_artworks and
not (total_num_artworks == 0 and n_tries > 3)):
while (len(list_links) < total_num_artworks and n_tries < 3):

# Save current number of artworks
old_num_artworks = len(list_links)
Expand Down

0 comments on commit 29060b9

Please sign in to comment.