Skip to content

Commit bfaebb8

Browse files
committed
Fix bad bots filtering
1 parent 8eed0d9 commit bfaebb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rest/service/player.service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ with players as (select pim."playerId" as player,
134134
from player_in_match pim
135135
inner join finished_match m on m.id = pim."matchId"
136136
where pim.hero = $1
137-
and (pim."playerId"::int > 10)
137+
and length(pim."playerId") > 2
138138
and m.matchmaking_mode in ($2, $3)
139139
group by pim."playerId")
140140
select p.player as steam_id,
@@ -143,7 +143,7 @@ select p.player as steam_id,
143143
p.kills::float as kills,
144144
p.deaths::float as deaths,
145145
p.assists::float as assists,
146-
(((p.kills + p.assists) / greatest(1, p.deaths)) * p.level * ((p.wins::float / p.games) ^ 2 * p.games))::int as score
146+
(((p.kills + p.assists) / greatest(1, p.deaths)) * ((p.wins::float / p.games) ^ 2 * p.games))::int as score
147147
from players p
148148
where p.games > $4
149149
order by score desc`;

0 commit comments

Comments
 (0)