We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fdf097 commit 1a1b787Copy full SHA for 1a1b787
services/app/apps/codebattle/lib/codebattle/tournament/strategy/base.ex
@@ -483,12 +483,8 @@ defmodule Codebattle.Tournament.Base do
483
end
484
485
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)
+ # TODO: FIXME
+ task_id = Enum.at(tournament.round_task_ids, tournament.current_round_position)
492
493
if task_id do
494
build_round_matches(tournament, %{task_id: task_id})
0 commit comments