From 624ea39eddd20585c3f52920dc12e7875ca59947 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 21 Feb 2024 17:51:54 +0100 Subject: [PATCH] Fix: edition coef UE null --- app/scodoc/sco_formsemestre_edit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scodoc/sco_formsemestre_edit.py b/app/scodoc/sco_formsemestre_edit.py index a9f46380..a0f534dd 100644 --- a/app/scodoc/sco_formsemestre_edit.py +++ b/app/scodoc/sco_formsemestre_edit.py @@ -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 )