1
0
forked from ScoDoc/ScoDoc

Fix bonus Sceaux (cas particulier sans bonus)

This commit is contained in:
Emmanuel Viennet 2023-03-12 18:57:35 +01:00
parent 1cc11cc932
commit e745a7938e

View File

@ -1276,7 +1276,8 @@ class BonusSceaux(BonusSportAdditif): # atypique
# pas d'étudiants ou pas d'UE ou pas de module...
return
super().compute_bonus(sem_modimpl_moys_inscrits, modimpl_coefs_etuds_no_nan)
self.bonus_ues = (self.bonus_ues / self.nb_ues) / self.sum_coefs_ues
if self.bonus_ues is not None:
self.bonus_ues = (self.bonus_ues / self.nb_ues) / self.sum_coefs_ues
class BonusStEtienne(BonusSportAdditif):