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

hotfix percentage

parent 1f26b7ac
No related branches found
No related tags found
2 merge requests!309Merge new updates into master,!279Homologa
Pipeline #28242 failed
...@@ -782,7 +782,7 @@ universityEnrollmentApp.get('/enter_situation', rqf.parse(), (req, res, next) => ...@@ -782,7 +782,7 @@ universityEnrollmentApp.get('/enter_situation', rqf.parse(), (req, res, next) =>
res.evadido = Number(res.evadido); res.evadido = Number(res.evadido);
res.trancado = Number(res.trancado); res.trancado = Number(res.trancado);
res.total = res.cursando + res.concluinte + res.evadido + res.trancado res.total = res.cursando + res.concluinte + res.evadido + res.trancado
res.taxa_evasao = Number(res.evadido/res.total) res.taxa_evasao = Number( ((res.evadido/res.total) * 100).toFixed(2) )
} }
next(); next();
}, id2str.transform(), response('enterSituation')); }, id2str.transform(), response('enterSituation'));
......
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