Commit f85776ff7e7f8bdc7012b1127eebe069825c0494

Authored by Gustavo
1 parent 38534860

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 518 alcance.append(0)
519 519  
520 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 522 media = soma // (planilha.nrows - 1)
525 523 medias.append(media)
526 524  
... ...