1
0
forked from ScoDoc/ScoDoc

tri depts sur page accueil

This commit is contained in:
Emmanuel Viennet 2021-09-04 11:41:23 +02:00
parent 8de0cd1029
commit dccae56fe7

View File

@ -47,7 +47,9 @@ from app.views import scodoc_bp as bp
@bp.route("/ScoDoc/index")
def index():
"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(
"scodoc.html",
title=sco_version.SCONAME,