Skip to content

Commit 1a1b787

Browse files
committed
Fix swiss task selector
1 parent 8fdf097 commit 1a1b787

File tree

1 file changed

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

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -483,12 +483,8 @@ defmodule Codebattle.Tournament.Base do
483483
end
484484

485485
def start_round_games(tournament, match_ref) do
486-
finished_match = get_match(tournament, match_ref)
487-
matches = get_round_matches(tournament, tournament.current_round_position)
488-
489-
task_index = round(2 * Enum.count(matches) / players_count(tournament))
490-
491-
task_id = Enum.at(tournament.round_task_ids, task_index)
486+
# TODO: FIXME
487+
task_id = Enum.at(tournament.round_task_ids, tournament.current_round_position)
492488

493489
if task_id do
494490
build_round_matches(tournament, %{task_id: task_id})

0 commit comments

Comments
 (0)