From df422ad1d353ec02db5560c6eab70ba0a28e73f7 Mon Sep 17 00:00:00 2001 From: ilona Date: Tue, 31 Dec 2024 13:34:36 +0100 Subject: [PATCH] Liste formsemestres accueil: trie aussi par titres --- app/scodoc/sco_dept.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/scodoc/sco_dept.py b/app/scodoc/sco_dept.py index e033a89a5..e81bf450f 100644 --- a/app/scodoc/sco_dept.py +++ b/app/scodoc/sco_dept.py @@ -55,17 +55,17 @@ def index_html(showcodes=0, showsemtable=0, export_table_formsemestres=False): current_formsemestres = ( FormSemestre.query.filter_by(dept_id=g.scodoc_dept_id, etat=True) .filter(FormSemestre.modalite != "EXT") - .order_by(desc(FormSemestre.date_debut)) + .order_by(desc(FormSemestre.date_debut), FormSemestre.titre) ) locked_formsemestres = ( FormSemestre.query.filter_by(dept_id=g.scodoc_dept_id, etat=False) .filter(FormSemestre.modalite != "EXT") - .order_by(desc(FormSemestre.date_debut)) + .order_by(desc(FormSemestre.date_debut), FormSemestre.titre) ) formsemestres = ( FormSemestre.query.filter_by(dept_id=g.scodoc_dept_id) .filter(FormSemestre.modalite != "EXT") - .order_by(desc(FormSemestre.date_debut)) + .order_by(desc(FormSemestre.date_debut), FormSemestre.titre) ) if showsemtable: # table de tous les formsemestres table = _sem_table_gt(