Skip to content

Commit

Permalink
fix: sort use kwrag ∵ no pos arg
Browse files Browse the repository at this point in the history
  • Loading branch information
18alantom committed Jul 3, 2024
1 parent d5d614c commit 3c67e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion press/press/doctype/deploy_candidate/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def get_build_server_with_least_active_builds() -> str | None:

# Build server might not be in build_count, or might be inactive
build_count_tuples = [(s, build_count[s]) for s in build_servers]
build_count_tuples.sort(lambda x: x[1])
build_count_tuples.sort(key=lambda x: x[1])
return build_count_tuples[0][0]


Expand Down

0 comments on commit 3c67e2a

Please sign in to comment.