1
0
forked from ScoDoc/ScoDoc

redirige les url /ScoDoc/DEPT vers /ScoDoc/DEPT/Scolarite

This commit is contained in:
Emmanuel Viennet 2021-10-04 22:30:57 +02:00
parent 54f0b87d39
commit 79b8520034
2 changed files with 7 additions and 1 deletions

View File

@ -374,7 +374,7 @@ def _make_table_notes(
columns_ids.append(e["evaluation_id"])
#
if anonymous_listing:
rows.sort(key=lambda x: x["code"])
rows.sort(key=lambda x: x["code"] or "")
else:
rows.sort(
key=lambda x: (x["nom"] or "", x["prenom"] or "")

View File

@ -82,6 +82,12 @@ def index():
)
# Renvoie les url /ScoDoc/RT/ vers /ScoDoc/RT/Scolarite
@bp.route("/ScoDoc/<scodoc_dept>/")
def index_dept(scodoc_dept):
return redirect(url_for("scolar.index_html", scodoc_dept=scodoc_dept))
@bp.route("/ScoDoc/table_etud_in_accessible_depts", methods=["POST"])
@login_required
def table_etud_in_accessible_depts():