From 316ffcf020bf00e3de538d114856c7376d155488 Mon Sep 17 00:00:00 2001 From: Bastien Seree Date: Mon, 7 Oct 2024 10:27:09 +0200 Subject: [PATCH] Cyberleague: [#159] clarify comments in statistics.js --- backend/web/server/plugins/cyberleague/statistic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/web/server/plugins/cyberleague/statistic.js b/backend/web/server/plugins/cyberleague/statistic.js index 0a1ac9ed60..a370463531 100644 --- a/backend/web/server/plugins/cyberleague/statistic.js +++ b/backend/web/server/plugins/cyberleague/statistic.js @@ -126,7 +126,7 @@ const computeBellwetherStatistics = async (filters) => { //TODO return 'not enough scores to have relevant data' } - // /!\ /!\ /!\ scores.answers.question in [question, undefined] -> undefined means answer is not bellwether + // /!\ /!\ /!\ scores.answers.question in [question, undefined] -> undefined means question is not bellwether const cleanScores = scores.map((s)=> { s.answers = lodash.filter(s.answers,(a) => { return !a.question @@ -187,7 +187,7 @@ const computeBellwetherStatistics = async (filters) => { }) }) - //Compute ratios for bellwether + //Compute ratios for bellwether / benchmark res.forEach((_,k) => { res[k] = Math.round(bellwetherData[k].value / bellwetherData[k].count * 100) /100 })