forked from ScoDoc/ScoDoc
Finalise calcul moy. gen. indicative BUT
This commit is contained in:
parent
e1db9c542b
commit
546e10c83a
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user