File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
services/app/apps/codebattle/lib/codebattle/tournament Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ defmodule Codebattle.Tournament.TournamentResult do
7575 games g
7676 where tournament_id = #{ tournament . id }
7777 and state = 'game_over'
78- and cheater_id is null
7978 and id not in (
8079 select distinct g.id from user_games ug inner join games g on g.id = ug.game_id
8180 where ug.user_id < 0 and ug.result = 'won' and g.tournament_id = #{ tournament . id }
@@ -101,7 +100,6 @@ defmodule Codebattle.Tournament.TournamentResult do
101100 END AS score,
102101 g.level,
103102 g.task_id,
104- g.cheater_id,
105103 g.id
106104 from games g
107105 CROSS JOIN LATERAL
@@ -119,7 +117,6 @@ defmodule Codebattle.Tournament.TournamentResult do
119117 user_name,
120118 clan_id,
121119 task_id,
122- cheater_id,
123120 score,
124121 level,
125122 duration_sec,
@@ -132,7 +129,6 @@ defmodule Codebattle.Tournament.TournamentResult do
132129 user_name,
133130 clan_id,
134131 task_id,
135- cheater_id,
136132 COALESCE(result_percent * score / 100.0, 0) as score,
137133 level,
138134 duration_sec,
You can’t perform that action at this time.
0 commit comments