From 1d03692ad017e9a34eaed250023259ba83583eac Mon Sep 17 00:00:00 2001 From: Kapil Viren Ahuja Date: Wed, 15 Mar 2017 13:28:14 +0530 Subject: Fix https://github.com/vainglorygame/meta/issues/44. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We will need a query to update this in production - I doubt we can fix older data as we don’t have anything from Raw… --- queries/participant.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queries/participant.sql b/queries/participant.sql index 8b20858..8e86e3d 100644 --- a/queries/participant.sql +++ b/queries/participant.sql @@ -29,7 +29,7 @@ COALESCE(NULLIF(participant->'data'->'attributes'->'stats'->>'level', ''), '0'): COALESCE(NULLIF(participant->'data'->'attributes'->'stats'->>'minionKills', ''), '0')::int AS "minion_kills", COALESCE(NULLIF(participant->'data'->'attributes'->'stats'->>'skillTier', ''), '0')::int AS "skill_tier", COALESCE(NULLIF(participant->'data'->'attributes'->'stats'->>'skinKey', ''), '0') AS "skin_key", -COALESCE(NULLIF(participant->'data'->'attributes'->'stats'->>'turretKills', ''), '0')::int AS "turret_kills", +COALESCE(NULLIF(participant->'data'->'attributes'->'stats'->>'turretCaptures', ''), '0')::int AS "turret_kills", (participant->'data'->'attributes'->'stats'->>'wentAfk')::bool AS "went_afk", (participant->'data'->'attributes'->'stats'->>'winner')::bool AS "winner", participant->'data'->'attributes'->'stats'->'itemGrants' AS "item_grants", -- cgit v1.3.1