From 3c77c0b7d890023ca002221cb5f76463c9df5b93 Mon Sep 17 00:00:00 2001 From: Kirill Riman <55841348+K-ETFreeman@users.noreply.github.com> Date: Wed, 25 Dec 2024 17:00:07 +0300 Subject: [PATCH] linter --- server/matchmaker/map_pool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/matchmaker/map_pool.py b/server/matchmaker/map_pool.py index ec5362833..cb007749f 100644 --- a/server/matchmaker/map_pool.py +++ b/server/matchmaker/map_pool.py @@ -52,7 +52,7 @@ def choose_map(self, played_map_ids: Iterable[int] = (), vetoesMap=None, max_tok least_common = least_common[:i] break - least_common_ids = {id_ for id_, _ in least_common} + least_common_ids = {id_ for id_, _ in least_common} # Multiply weight by 2 if map is least common and not vetoed by anyone mapList = list((map.map_pool_map_version_id, map, 2 if (map.id in least_common_ids) and (vetoesMap.get(map.map_pool_map_version_id, 0) == 0) else 1) for id, map in self.maps.items())