mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 21:07:27 +00:00
refactor(champions): remove useless fields from query
This commit is contained in:
parent
629cad12fb
commit
36f3c46b59
1 changed files with 0 additions and 2 deletions
|
|
@ -154,14 +154,12 @@ class MatchRepository {
|
||||||
COUNT(match_players.id) as count,
|
COUNT(match_players.id) as count,
|
||||||
SUM(match_players.win) as wins,
|
SUM(match_players.win) as wins,
|
||||||
SUM(match_players.loss) as losses,
|
SUM(match_players.loss) as losses,
|
||||||
SUM(matches.game_duration) as time,
|
|
||||||
AVG(matches.game_duration)::int as "gameLength",
|
AVG(matches.game_duration)::int as "gameLength",
|
||||||
AVG(match_players.minions)::int as minions,
|
AVG(match_players.minions)::int as minions,
|
||||||
AVG(match_players.gold)::int as gold,
|
AVG(match_players.gold)::int as gold,
|
||||||
AVG(match_players.damage_dealt_champions)::int as "dmgChamp",
|
AVG(match_players.damage_dealt_champions)::int as "dmgChamp",
|
||||||
AVG(match_players.damage_taken)::int as "dmgTaken",
|
AVG(match_players.damage_taken)::int as "dmgTaken",
|
||||||
AVG(match_players.kp) as kp,
|
AVG(match_players.kp) as kp,
|
||||||
AVG(match_players.kda) as kda,
|
|
||||||
MAX(matches.date) as date
|
MAX(matches.date) as date
|
||||||
FROM
|
FROM
|
||||||
match_players
|
match_players
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue