Fix: edition coef UE null

This commit is contained in:
Emmanuel Viennet 2024-02-21 17:51:54 +01:00
parent 853bc31422
commit 624ea39edd

View File

@ -1678,7 +1678,7 @@ def formsemestre_edit_uecoefs(formsemestre_id, err_ue_id=None):
sum_coefs_by_ue_id = {}
for ue in ues:
sum_coefs_by_ue_id[ue.id] = sum(
modimpl.module.coefficient
modimpl.module.coefficient or 0.0
for modimpl in modimpls
if modimpl.module.ue_id == ue.id
)