We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ecaa63 commit 708f281Copy full SHA for 708f281
services/app/apps/codebattle/lib/codebattle/tournament/task_provider.ex
@@ -60,7 +60,7 @@ defmodule Codebattle.Tournament.TaskProvider do
60
end
61
62
63
- def get_task(%{task_strategy: "sequential", current_round_position: round} = tournament, nil) do
+ def get_task(%{current_round_position: round} = tournament, nil) do
64
tournament.task_ids
65
|> Enum.at(round)
66
|> case do
@@ -69,12 +69,6 @@ defmodule Codebattle.Tournament.TaskProvider do
69
70
71
72
- def get_task(tournament, nil) do
73
- tournament.task_ids
74
- |> safe_random()
75
- |> then(&Tasks.get_task(tournament, &1))
76
- end
77
-
78
def get_task(tournament, task_id) do
79
Tasks.get_task(tournament, task_id)
80
0 commit comments