summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2018-07-12 11:34:43 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2018-12-13 17:09:25 +0100
commit74d606bef1d0259fa28dee011db41de1fb236b98 (patch)
treea5abff20f00e00fd1186c9169fe4f6787e440c22 /backend
parentb6a0e90753443e56e90be0c52fd65a7a3df2d2e4 (diff)
downloadbrokentalents-74d606bef1d0259fa28dee011db41de1fb236b98.tar.gz
brokentalents-74d606bef1d0259fa28dee011db41de1fb236b98.zip
Add Blitz Points statistics
Diffstat (limited to 'backend')
-rw-r--r--backend/config.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/backend/config.js b/backend/config.js
index 72952a2..3fd675e 100644
--- a/backend/config.js
+++ b/backend/config.js
@@ -51,7 +51,14 @@ module.exports = {
},
etl: {
/* attributes to be extracted and renamed from main API data */
- participant: [ ['Winner', ['attributes', 'stats', 'winner']] ],
+ participant: [
+ ['Winner', ['attributes', 'stats', 'winner']],
+ ['Kills', ['attributes', 'stats', 'kills']],
+ ['Deaths', ['attributes', 'stats', 'deaths']],
+ ['CrystalMinerKills', ['attributes', 'stats', 'crystalMineCaptures']],
+ ['GoldMinerKills', ['attributes', 'stats', 'goldMineCaptures']],
+ ['TurretKills', ['attributes', 'stats', 'turretCaptures']],
+ ],
roster: [ ],
match: [ ['Mode', ['attributes', 'gameMode']] ],
},
@@ -67,7 +74,7 @@ module.exports = {
/* criteria or 'filters' */
group: ['Actor', 'Talent', 'Mode', 'LevelBucket'],
/* stats */
- sum: ['Winner'],
+ sum: ['Winner', 'Kills', 'Deaths', 'CrystalMinerKills', 'GoldMinerKills', 'TurretKills'],
},
file: {
pattern: (moment) => `./data/${hashSettings(module.exports)}/${moment.toISOString()}.json`,