From 2764ff1074f97f381536e25c7dac1ac79120dd80 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 2 Feb 2022 09:51:28 +0100 Subject: [PATCH] Fix: tri modimpls sans numeros --- app/models/formsemestre.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/formsemestre.py b/app/models/formsemestre.py index 599fcda2..2234fdfa 100644 --- a/app/models/formsemestre.py +++ b/app/models/formsemestre.py @@ -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