From bb7e1e20744331280e9fcc96d2cd5f51f9a1b25d Mon Sep 17 00:00:00 2001
From: Pietro Polinari Cavassin <ppc19@inf.ufpr.br>
Date: Tue, 25 Oct 2022 09:59:41 -0300
Subject: [PATCH] change percentage to 2 decimal places

---
 src/libs/routes/courseCount.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libs/routes/courseCount.js b/src/libs/routes/courseCount.js
index b72181c5..404ed2eb 100644
--- a/src/libs/routes/courseCount.js
+++ b/src/libs/routes/courseCount.js
@@ -726,7 +726,7 @@ courseCountApp.get('/count_by_name', rqfMapfor.parse(), (req, res, next) => {
     if ('course' in req.dims){
         var total_course = req.result.reduce((total, cur) => {return total += cur.total}, 0)
         for (var course of req.result){
-            course.percentage = Number((( course.total / total_course ) * 100).toFixed(1))
+            course.percentage = Number((( course.total / total_course ) * 100).toFixed(2))
         }
     }
     next();
-- 
GitLab