Fix: bug St Malo

This commit is contained in:
Emmanuel Viennet 2022-02-12 10:38:04 +01:00
parent 70e1fd2cba
commit 9e69dcd05e
1 changed files with 7 additions and 2 deletions

View File

@ -136,8 +136,13 @@ def df_load_modimpl_coefs(
)
for mod_coef in mod_coefs:
modimpl_coefs_df[mod2impl[mod_coef.module_id]][mod_coef.ue_id] = mod_coef.coef
try:
modimpl_coefs_df[mod2impl[mod_coef.module_id]][
mod_coef.ue_id
] = mod_coef.coef
except IndexError:
# il peut y avoir en base des coefs sur des modules ou UE qui ont depuis été retirés de la formation
pass
# Initialisation des poids non fixés:
# 0 pour modules normaux, 1. pour bonus (car par défaut, on veut qu'un bonus agisse
# sur toutes les UE)