Skip to content
Snippets Groups Projects
Commit df422ad1 authored by ilona's avatar ilona
Browse files

Liste formsemestres accueil: trie aussi par titres

parent f4b995c9
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment