From f85776ff7e7f8bdc7012b1127eebe069825c0494 Mon Sep 17 00:00:00 2001 From: Gustavo Date: Fri, 18 Aug 2017 00:34:31 -0300 Subject: [PATCH] Modified the way that the goals average is calculated, now works properly --- bulletin/views.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bulletin/views.py b/bulletin/views.py index 042aff1..faf7880 100644 --- a/bulletin/views.py +++ b/bulletin/views.py @@ -518,9 +518,7 @@ def read_excel_file(estudante,meta,qtd,boletim): alcance.append(0) for b in range(2,planilha.ncols): - for item in planilha.col_values(b,1,planilha.nrows): - soma += int(item) - + soma = int(sum(list(planilha.col_values(b,1,planilha.nrows)))) media = soma // (planilha.nrows - 1) medias.append(media) -- libgit2 0.21.2