From e2ca74fd506bdc66d23681028f6784702cc8834e Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 10 Aug 2022 07:32:55 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20pour=20#471=20:=20=C3=A0=20confirmer.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/but/jury_but_recap.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/but/jury_but_recap.py b/app/but/jury_but_recap.py index 6611147e8..038335ac2 100644 --- a/app/but/jury_but_recap.py +++ b/app/but/jury_but_recap.py @@ -484,12 +484,16 @@ def get_jury_but_etud_result( rcue_dict = { "ue_1": { "ue_id": rcue.ue_1.id, - "moy": None if np.isnan(dec_ue1.moy_ue) else dec_ue1.moy_ue, + "moy": None + if (dec_ue1.moy_ue is None or np.isnan(dec_ue1.moy_ue)) + else dec_ue1.moy_ue, "code": dec_ue1.code_valide, }, "ue_2": { "ue_id": rcue.ue_2.id, - "moy": None if np.isnan(dec_ue2.moy_ue) else dec_ue2.moy_ue, + "moy": None + if (dec_ue2.moy_ue is None or np.isnan(dec_ue2.moy_ue)) + else dec_ue2.moy_ue, "code": dec_ue2.code_valide, }, "moy": rcue.moy_rcue,