From 8da91a76d0c6bc609e7f042cad152930df1a5e32 Mon Sep 17 00:00:00 2001 From: schneefux Date: Mon, 24 Apr 2017 15:11:03 +0200 Subject: use duration from p_s --- worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"), -- cgit v1.3.1