Fix: ordre des étudiants

This commit is contained in:
Emmanuel Viennet 2021-12-17 14:24:00 +01:00
parent 87bcfc801a
commit b709b9c2f1
2 changed files with 6 additions and 1 deletions

View File

@ -137,6 +137,7 @@ def df_load_modimpl_notes(moduleimpl_id: int) -> tuple:
WHERE evaluation_id=%(evaluation_id)s WHERE evaluation_id=%(evaluation_id)s
AND n.etudid = i.etudid AND n.etudid = i.etudid
AND i.moduleimpl_id = %(moduleimpl_id)s AND i.moduleimpl_id = %(moduleimpl_id)s
ORDER BY n.etudid
""", """,
db.engine, db.engine,
params={ params={

View File

@ -407,7 +407,11 @@ class FormsemestreInscription(db.Model):
) )
formsemestre = db.relationship( formsemestre = db.relationship(
FormSemestre, FormSemestre,
backref=db.backref("inscriptions", cascade="all, delete-orphan"), backref=db.backref(
"inscriptions",
cascade="all, delete-orphan",
order_by="FormsemestreInscription.etudid",
),
) )
# I inscrit, D demission en cours de semestre, DEF si "defaillant" # I inscrit, D demission en cours de semestre, DEF si "defaillant"
etat = db.Column(db.String(CODE_STR_LEN), index=True) etat = db.Column(db.String(CODE_STR_LEN), index=True)