1
0
forked from ScoDoc/ScoDoc

Finalise calcul moy. gen. indicative BUT

This commit is contained in:
Emmanuel Viennet 2022-02-28 15:07:48 +01:00
parent e1db9c542b
commit 546e10c83a
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ class ResultatsSemestreBUT(NotesTableCompat):
# ) # )
self.etud_moy_gen = moy_sem.compute_sem_moys_apc_using_ects( self.etud_moy_gen = moy_sem.compute_sem_moys_apc_using_ects(
self.etud_moy_ue, self.etud_moy_ue,
[ue.ects for ue in self.ues], [ue.ects for ue in self.ues if ue.type != UE_SPORT],
formation_id=self.formsemestre.formation_id, formation_id=self.formsemestre.formation_id,
) )
# --- UE capitalisées # --- UE capitalisées

View File

@ -195,7 +195,7 @@ class ResultatsSemestre(ResultatsCache):
if ue_cap["is_capitalized"]: if ue_cap["is_capitalized"]:
recompute_mg = True recompute_mg = True
coef = ue_cap["coef_ue"] coef = ue_cap["coef_ue"]
if not np.isnan(ue_cap["moy"]): if not np.isnan(ue_cap["moy"]) and coef:
sum_notes_ue += ue_cap["moy"] * coef sum_notes_ue += ue_cap["moy"] * coef
sum_coefs_ue += coef sum_coefs_ue += coef