1
0
forked from ScoDoc/ScoDoc

Fix pour #471 : à confirmer.

This commit is contained in:
Emmanuel Viennet 2022-08-10 07:32:55 +02:00
parent 84c08ff225
commit e2ca74fd50

View File

@ -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,