handle MALUS modules #478

Closed
jmplace wants to merge 1 commits from jmplace:fix_formsemestre-programme into master
1 changed files with 5 additions and 1 deletions

View File

@ -238,7 +238,11 @@ def formsemestre_programme(formsemestre_id: int):
}
for modimpl in formsemestre.modimpls_sorted:
d = modimpl.to_dict(convert_objects=True)
m_list[modimpl.module.module_type].append(d)
m_list[
modimpl.module.module_type
if modimpl.module.module_type != ModuleType.MALUS
else ModuleType.STANDARD
].append(d)
return jsonify(
{
"ues": [ue.to_dict(convert_objects=True) for ue in ues],