Fix section and course assistance calculation
This commit is contained in:
@@ -32,7 +32,6 @@
|
||||
function (value){
|
||||
angular.forEach (value.students,
|
||||
function (valued){
|
||||
vm.lectures = valued.assistance;
|
||||
angular.forEach (valued.assistanceTotal,
|
||||
function (valueda){
|
||||
if (valueda.assistance) {
|
||||
@@ -44,7 +43,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.");
|
||||
|
Reference in New Issue
Block a user