summaryrefslogtreecommitdiff
path: root/worker.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-24 15:11:03 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-24 15:11:03 +0200
commit8da91a76d0c6bc609e7f042cad152930df1a5e32 (patch)
tree0085d3945d8a0e78f41420d621f4606c0fb544fc /worker.js
parentb7247618dfa985fba6840fe6b04273a15adcb846 (diff)
downloadcruncher-8da91a76d0c6bc609e7f042cad152930df1a5e32.tar.gz
cruncher-8da91a76d0c6bc609e7f042cad152930df1a5e32.zip
use duration from p_s
Diffstat (limited to 'worker.js')
-rw-r--r--worker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/worker.js b/worker.js
index 7a09224..7b09a9d 100644
--- a/worker.js
+++ b/worker.js
@@ -261,7 +261,7 @@ function* chunks(arr) {
where: where,
attributes: [
[ seq.fn("count", seq.col("participant.id")), "played" ],
- //[ seq.fn("sum", seq.col("participant.roster.match.duration")), "time_spent" ],
+ [ seq.fn("sum", seq.col("duration")), "time_spent" ],
[ seq.fn("sum", seq.cast(seq.col("participant.winner"), "int") ), "wins" ],
sum("kills"),
sum("deaths"),