diff options
| author | Kapil Viren Ahuja <k.v.ahuja@gmail.com> | 2017-02-17 15:54:55 +0530 |
|---|---|---|
| committer | Kapil Viren Ahuja <k.v.ahuja@gmail.com> | 2017-02-17 15:54:55 +0530 |
| commit | 6dfc71bf6b4d617ffc10f60cdc06b376e26b1c34 (patch) | |
| tree | 5ff790d38bbb836464dff0264b96c9d5b574044e /queries | |
| parent | eaf6b29760f13040444707eecf9c342c67bd6ffb (diff) | |
| download | processor-6dfc71bf6b4d617ffc10f60cdc06b376e26b1c34.tar.gz processor-6dfc71bf6b4d617ffc10f60cdc06b376e26b1c34.zip | |
refactored to adapt to changes in Web's DB model.
this will only work with branch -
https://github.com/vainglorygame/vainsocial.com/tree/features/db-model-refactoring
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/player.sql | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/queries/player.sql b/queries/player.sql index 4f37018..add926a 100644 --- a/queries/player.sql +++ b/queries/player.sql @@ -5,17 +5,11 @@ attributes->>'name' AS "name", (attributes->'stats'->>'level')::int AS "level", (attributes->'stats'->>'xp')::int AS "xp", (attributes->'stats'->>'played')::int AS "played", -0 AS "totalGamePlaytime", (attributes->'stats'->>'played_ranked')::int AS "playedRanked", +(attributes->'stats'->>'played')::int - (attributes->'stats'->>'played_ranked')::int AS "playedCasual", (attributes->'stats'->>'wins')::int AS "wins", -(attributes->'stats'->>'winStreak')::int AS "streak", -'' AS "herosUnlocked", -'' "skinsUnlocked", -attributes->'stats'->>'lifetimeGold' AS "lifeTimeGold", -0 AS "lifeTimeKills", -0 AS "lifeTimeDeaths", -0 AS "lifeTimeAssists", -0 AS "lifeTimeKD", -0 AS "lifeTimeKDA" +(attributes->'stats'->>'lifetimeGold')::float AS "lifetimeGold", + +0 AS "streak" FROM player |
