Skip to content
Snippets Groups Projects
Commit fa6c0a76 authored by Pietro Cavassin's avatar Pietro Cavassin
Browse files

Merge branch 'dev' into 'homologa'

change percentage to 2 decimal places

See merge request !336
parents 59f1ff86 bb7e1e20
No related branches found
No related tags found
3 merge requests!342Hotfix filters,!339employees indicator now takes the year information from school table, since...,!336change percentage to 2 decimal places
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment