forked from ScoDoc/ScoDoc
N'exporte pas les rangs d'UE si option désactivée
This commit is contained in:
parent
39fa7f2487
commit
844a90ed62
@ -77,13 +77,19 @@ class BulletinBUT(ResultatsSemestreBUT):
|
||||
"saes": self.etud_ue_mod_results(etud, ue, self.saes),
|
||||
}
|
||||
if ue.type != UE_SPORT:
|
||||
rangs, effectif = self.ue_rangs[ue.id]
|
||||
if sco_preferences.get_preference(
|
||||
"bul_show_ue_rangs", self.formsemestre.id
|
||||
):
|
||||
rangs, effectif = self.ue_rangs[ue.id]
|
||||
rang = rangs[etud.id]
|
||||
else:
|
||||
rang, effectif = "", 0
|
||||
d["moyenne"] = {
|
||||
"value": fmt_note(self.etud_moy_ue[ue.id][etud.id]),
|
||||
"min": fmt_note(self.etud_moy_ue[ue.id].min()),
|
||||
"max": fmt_note(self.etud_moy_ue[ue.id].max()),
|
||||
"moy": fmt_note(self.etud_moy_ue[ue.id].mean()),
|
||||
"rang": rangs[etud.id],
|
||||
"rang": rang,
|
||||
"total": effectif, # nb etud avec note dans cette UE
|
||||
}
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user