Précision nb abs sur table recap

This commit is contained in:
Emmanuel Viennet 2024-02-28 23:22:15 +01:00
parent 9cdab8d1ed
commit e56cbfc5a2
2 changed files with 5 additions and 3 deletions

View File

@ -621,8 +621,10 @@ class RowRecap(tb.Row):
"Ajoute les colonnes absences" "Ajoute les colonnes absences"
# Absences (nb d'abs non just. dans ce semestre) # Absences (nb d'abs non just. dans ce semestre)
nbabs, nbabsjust = self.table.res.formsemestre.get_abs_count(self.etud.id) nbabs, nbabsjust = self.table.res.formsemestre.get_abs_count(self.etud.id)
self.add_cell("nbabs", "Abs", nbabs, "abs") self.add_cell("nbabs", "Abs", f"{nbabs:1.0f}", "abs", raw_content=nbabs)
self.add_cell("nbabsjust", "Just.", nbabsjust, "abs") self.add_cell(
"nbabsjust", "Just.", f"{nbabsjust:1.0f}", "abs", raw_content=nbabsjust
)
def add_moyennes_cols( def add_moyennes_cols(
self, self,

View File

@ -1,7 +1,7 @@
# -*- mode: python -*- # -*- mode: python -*-
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
SCOVERSION = "9.6.948" SCOVERSION = "9.6.949"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"