Skip to content

Commit

Permalink
Sort ratings list
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackYps committed Jun 10, 2024
1 parent e231339 commit dd9ec3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/matchmaker/matchmaker_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def to_dict(self):
ndigits=2
),
"num_players": self.num_players,
"ratings": list(ratings),
"ratings": sorted(ratings),
# DEPRECATED
"boundary_80s": [search.boundary_80 for search in self._queue.keys()],
# DEPRECATED
Expand Down
4 changes: 2 additions & 2 deletions tests/unit_tests/test_lobbyconnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,10 +1036,10 @@ async def test_command_matchmaker_info(
{
"queue_name": "test",
"queue_pop_time": "2019-07-01T16:53:20+00:00",
"queue_pop_time_delta": 1.0,
"queue_pop_time_delta": 1,
"team_size": 3,
"num_players": 6,
"ratings": [1700, 125, 1125],
"ratings": [125, 1125, 1700],
"boundary_80s": [(1800, 2200), (400, 800), (800, 1200)],
"boundary_75s": [(1900, 2100), (500, 700), (900, 1100)]
}
Expand Down

0 comments on commit dd9ec3b

Please sign in to comment.