Fix student assistance calculation

This commit is contained in:
Reynaldo Reyes
2016-04-12 23:21:59 -04:30
parent 1ee3577fe4
commit ee5cc1f019

View File

@@ -39,7 +39,7 @@
} }
}); });
vm.total = vm.positive + vm.negative; vm.total = vm.positive + vm.negative;
vm.percentage = ((vm.positive/vm.total)/vm.lectures)*100; vm.percentage = (vm.positive/vm.total)*100;
}, },
function (){ function (){
console.log("Error al obtener los datos."); console.log("Error al obtener los datos.");