Fix section and course assistance calculation

This commit is contained in:
Reynaldo Reyes
2016-04-12 23:26:18 -04:30
parent ee5cc1f019
commit 8fee773cf8
2 changed files with 2 additions and 4 deletions

View File

@@ -30,7 +30,6 @@
angular.forEach (vm.section.students,
function (value){
vm.lectures = value.assistance;
angular.forEach (value.assistanceTotal,
function (valued){
if (valued.assistance) {
@@ -41,7 +40,7 @@
});
});
vm.total = vm.positive + vm.negative;
vm.percentage = ((vm.positive/vm.total)/vm.lectures)*100;
vm.percentage = (vm.positive/vm.total)*100;
},
function (){
console.log("Error al obtener los datos.");