Commit f85776ff7e7f8bdc7012b1127eebe069825c0494
1 parent
38534860
Exists in
master
and in
2 other branches
Modified the way that the goals average is calculated, now works properly
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
bulletin/views.py
@@ -518,9 +518,7 @@ def read_excel_file(estudante,meta,qtd,boletim): | @@ -518,9 +518,7 @@ def read_excel_file(estudante,meta,qtd,boletim): | ||
518 | alcance.append(0) | 518 | alcance.append(0) |
519 | 519 | ||
520 | for b in range(2,planilha.ncols): | 520 | for b in range(2,planilha.ncols): |
521 | - for item in planilha.col_values(b,1,planilha.nrows): | ||
522 | - soma += int(item) | ||
523 | - | 521 | + soma = int(sum(list(planilha.col_values(b,1,planilha.nrows)))) |
524 | media = soma // (planilha.nrows - 1) | 522 | media = soma // (planilha.nrows - 1) |
525 | medias.append(media) | 523 | medias.append(media) |
526 | 524 |