forked from ScoDoc/ScoDoc
tri depts sur page accueil
This commit is contained in:
parent
8de0cd1029
commit
dccae56fe7
@ -47,7 +47,9 @@ from app.views import scodoc_bp as bp
|
|||||||
@bp.route("/ScoDoc/index")
|
@bp.route("/ScoDoc/index")
|
||||||
def index():
|
def index():
|
||||||
"Page d'accueil: liste des départements"
|
"Page d'accueil: liste des départements"
|
||||||
depts = Departement.query.filter_by(visible=True).all()
|
depts = (
|
||||||
|
Departement.query.filter_by(visible=True).order_by(Departement.acronym).all()
|
||||||
|
)
|
||||||
return render_template(
|
return render_template(
|
||||||
"scodoc.html",
|
"scodoc.html",
|
||||||
title=sco_version.SCONAME,
|
title=sco_version.SCONAME,
|
||||||
|
Loading…
Reference in New Issue
Block a user