forked from ScoDoc/ScoDoc
Liste formsemestres accueil: trie aussi par titres
This commit is contained in:
parent
f4b995c9d2
commit
df422ad1d3
@ -55,17 +55,17 @@ def index_html(showcodes=0, showsemtable=0, export_table_formsemestres=False):
|
|||||||
current_formsemestres = (
|
current_formsemestres = (
|
||||||
FormSemestre.query.filter_by(dept_id=g.scodoc_dept_id, etat=True)
|
FormSemestre.query.filter_by(dept_id=g.scodoc_dept_id, etat=True)
|
||||||
.filter(FormSemestre.modalite != "EXT")
|
.filter(FormSemestre.modalite != "EXT")
|
||||||
.order_by(desc(FormSemestre.date_debut))
|
.order_by(desc(FormSemestre.date_debut), FormSemestre.titre)
|
||||||
)
|
)
|
||||||
locked_formsemestres = (
|
locked_formsemestres = (
|
||||||
FormSemestre.query.filter_by(dept_id=g.scodoc_dept_id, etat=False)
|
FormSemestre.query.filter_by(dept_id=g.scodoc_dept_id, etat=False)
|
||||||
.filter(FormSemestre.modalite != "EXT")
|
.filter(FormSemestre.modalite != "EXT")
|
||||||
.order_by(desc(FormSemestre.date_debut))
|
.order_by(desc(FormSemestre.date_debut), FormSemestre.titre)
|
||||||
)
|
)
|
||||||
formsemestres = (
|
formsemestres = (
|
||||||
FormSemestre.query.filter_by(dept_id=g.scodoc_dept_id)
|
FormSemestre.query.filter_by(dept_id=g.scodoc_dept_id)
|
||||||
.filter(FormSemestre.modalite != "EXT")
|
.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
|
if showsemtable: # table de tous les formsemestres
|
||||||
table = _sem_table_gt(
|
table = _sem_table_gt(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user