handle MALUS modules #478
|
@ -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],
|
||||
|
|
Loading…
Reference in New Issue