Fix: tri modimpls sans numeros

This commit is contained in:
Emmanuel Viennet 2022-02-02 09:51:28 +01:00
parent e3c9f187dd
commit 2764ff1074

View File

@ -170,10 +170,10 @@ class FormSemestre(db.Model):
else:
modimpls.sort(
key=lambda m: (
m.module.ue.numero,
m.module.matiere.numero,
m.module.numero,
m.module.code,
m.module.ue.numero or 0,
m.module.matiere.numero or 0,
m.module.numero or 0,
m.module.code or "",
)
)
return modimpls