mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 15:55:49 -04:00
refactor: short circuit claimable sites loop when we have enough sites
This commit is contained in:
parent
f0d527cda7
commit
0f57188a2c
@ -65,6 +65,9 @@ def filter_claimable_site_ids(
|
||||
if is_claimable:
|
||||
claimable_sites.append(site)
|
||||
|
||||
if len(claimable_sites) >= max_sites_to_claim:
|
||||
break
|
||||
|
||||
site_ids_to_claim = []
|
||||
# gather sites that are under the max without going over
|
||||
for site in claimable_sites:
|
||||
|
Loading…
x
Reference in New Issue
Block a user