From 704c4144e76577925f576be2a1c8dceb74f1b7f3 Mon Sep 17 00:00:00 2001 From: Bird101 Date: Wed, 17 Feb 2016 12:39:22 +0800 Subject: [PATCH] Fixed scoreboard show graph bug --- CTFd/static/js/scoreboard.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CTFd/static/js/scoreboard.js b/CTFd/static/js/scoreboard.js index 227bd6f..fad62ad 100644 --- a/CTFd/static/js/scoreboard.js +++ b/CTFd/static/js/scoreboard.js @@ -65,9 +65,10 @@ function scoregraph () { var date = moment(scores[teams[i]][j].time * 1000); times.push(date.format('YYYY-MM-DD hh:mm:ss')); } + team_score = cumulativesum(team_score); var trace = { x: times, - y: scores, + y: team_score, mode: 'lines+markers', name: teams[i] }