diff --git a/app/models/etudiants.py b/app/models/etudiants.py index 61483310..4340b85b 100644 --- a/app/models/etudiants.py +++ b/app/models/etudiants.py @@ -171,7 +171,7 @@ class Identite(db.Model, models.ScoDocModel): def html_link_fiche(self) -> str: "lien vers la fiche" - return f"""{self.nomprenom}""" + return f"""{self.nomprenom}""" def url_fiche(self) -> str: "url de la fiche étudiant" @@ -319,6 +319,8 @@ class Identite(db.Model, models.ScoDocModel): @cached_property def sort_key(self) -> tuple: "clé pour tris par ordre alphabétique" + # Note: scodoc7 utilisait sco_etud.etud_sort_key, à mettre à jour + # si on modifie cette méthode. return ( scu.sanitize_string( self.nom_usuel or self.nom or "", remove_spaces=False diff --git a/app/scodoc/sco_evaluations.py b/app/scodoc/sco_evaluations.py index e05d64f7..0e35c688 100644 --- a/app/scodoc/sco_evaluations.py +++ b/app/scodoc/sco_evaluations.py @@ -334,9 +334,9 @@ def do_evaluation_list_in_sem(formsemestre_id, with_etat=True): """ req = """SELECT E.id AS evaluation_id, E.* - FROM notes_evaluation E, notes_moduleimpl MI - WHERE MI.formsemestre_id = %(formsemestre_id)s - and MI.id = E.moduleimpl_id + FROM notes_evaluation E, notes_moduleimpl MI + WHERE MI.formsemestre_id = %(formsemestre_id)s + and MI.id = E.moduleimpl_id ORDER BY MI.id, numero desc, date_debut desc """ cnx = ndb.GetDBConnexion() @@ -494,7 +494,7 @@ def formsemestre_evaluations_cal(formsemestre_id):