From 8044a8c1e159901152d390b80a80954e62bb70dd Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 16 Mar 2023 15:26:41 +0100 Subject: [PATCH] PE: fix (mais calcul coef. non compatible BUT) --- app/pe/pe_semestretag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/pe/pe_semestretag.py b/app/pe/pe_semestretag.py index 20be15c4e0..2db20732ba 100644 --- a/app/pe/pe_semestretag.py +++ b/app/pe/pe_semestretag.py @@ -256,7 +256,7 @@ class SemestreTag(pe_tagtable.TableTag): # Si le module ne fait pas partie des UE capitalisées if modimpl.module.ue.id not in ue_capitalisees_id: note = self.nt.get_etud_mod_moy(modimpl_id, etudid) # lecture de la note - coeff = modimpl.module.coefficient # le coeff + coeff = modimpl.module.coefficient or 0.0 # le coeff (! non compatible BUT) coeff_norm = ( coeff / self.somme_coeffs if self.somme_coeffs != 0 else 0 ) # le coeff normalisé