Skip to content

Commit 0aab955

Browse files
committed
Final swiss fix
1 parent b2370bb commit 0aab955

File tree

1 file changed

+1
-1
lines changed
  • services/app/apps/codebattle/lib/codebattle/tournament/strategy

1 file changed

+1
-1
lines changed

services/app/apps/codebattle/lib/codebattle/tournament/strategy/swiss.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ defmodule Codebattle.Tournament.Swiss do
144144
{player, [candidate | rest_players], _played_pair_ids} ->
145145
{
146146
[player, candidate],
147-
[player.id, candidate.id] |> Enum.map(& &1.id) |> Enum.sort(),
147+
Enum.sort([player.id, candidate.id]),
148148
rest_players
149149
}
150150
end

0 commit comments

Comments
 (0)