Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
K-ETFreeman committed Dec 25, 2024
1 parent a2c42a5 commit 3c77c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/matchmaker/map_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 3c77c0b

Please sign in to comment.