File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ with players as (select pim."playerId" as player,
134
134
from player_in_match pim
135
135
inner join finished_match m on m.id = pim."matchId"
136
136
where pim.hero = $1
137
- and (pim."playerId"::int > 10)
137
+ and length (pim."playerId") > 2
138
138
and m.matchmaking_mode in ($2, $3)
139
139
group by pim."playerId")
140
140
select p.player as steam_id,
@@ -143,7 +143,7 @@ select p.player as steam_id,
143
143
p.kills::float as kills,
144
144
p.deaths::float as deaths,
145
145
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
147
147
from players p
148
148
where p.games > $4
149
149
order by score desc` ;
You can’t perform that action at this time.
0 commit comments