Skip to content

Commit

Permalink
default to ACTIVE
Browse files Browse the repository at this point in the history
  • Loading branch information
daroczig committed Jan 2, 2025
1 parent 1c9da08 commit a4cdda1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sc_crawler/vendor_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def parallel_fetch_servers(
vendor.log(f"{len(servers)} server(s) found in {len(locations)} {by}.")
servers = list({s[id_col]: s for s in servers}.values())
vendor.log(f"{len(servers)} unique server(s) found.")
active_servers = [s for s in servers if s["status"] == Status.ACTIVE]
active_servers = [
s for s in servers if s.get("status", Status.ACTIVE) == Status.ACTIVE
]
vendor.log(f"{len(active_servers)} ACTIVE server(s) found.")
vendor.progress_tracker.hide_task()
return servers
Expand Down

0 comments on commit a4cdda1

Please sign in to comment.