Skip to content

Commit 708f281

Browse files
committed
Fix tasks
1 parent 3ecaa63 commit 708f281

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

services/app/apps/codebattle/lib/codebattle/tournament/task_provider.ex

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ defmodule Codebattle.Tournament.TaskProvider do
6060
end
6161
end
6262

63-
def get_task(%{task_strategy: "sequential", current_round_position: round} = tournament, nil) do
63+
def get_task(%{current_round_position: round} = tournament, nil) do
6464
tournament.task_ids
6565
|> Enum.at(round)
6666
|> case do
@@ -69,12 +69,6 @@ defmodule Codebattle.Tournament.TaskProvider do
6969
end
7070
end
7171

72-
def get_task(tournament, nil) do
73-
tournament.task_ids
74-
|> safe_random()
75-
|> then(&Tasks.get_task(tournament, &1))
76-
end
77-
7872
def get_task(tournament, task_id) do
7973
Tasks.get_task(tournament, task_id)
8074
end

0 commit comments

Comments
 (0)