diff --git a/app/scodoc/sco_undo_notes.py b/app/scodoc/sco_undo_notes.py index e8a52deb7..427be6909 100644 --- a/app/scodoc/sco_undo_notes.py +++ b/app/scodoc/sco_undo_notes.py @@ -178,14 +178,14 @@ def formsemestre_list_saisies_notes( """ sem = sco_formsemestre.get_formsemestre(context, formsemestre_id) r = ndb.SimpleDictFetch( - """SELECT i.nom, n.*, mod.titre, e.description, e.jour - FROM notes_notes n, notes_evaluation e, notes_moduleimpl mi, + """SELECT i.nom, n.*, mod.titre, e.description, e.jour + FROM notes_notes n, notes_evaluation e, notes_moduleimpl mi, notes_modules mod, identite i WHERE mi.id = e.moduleimpl_id - and m.module_id = mod.id - and e.id=n.evaluation_id - and i.etudid=n.etudid - and mi.formsemestre_id=%(formsemestre_id)s + and mi.module_id = mod.id + and e.id = n.evaluation_id + and i.id = n.etudid + and mi.formsemestre_id = %(formsemestre_id)s ORDER BY date desc """, {"formsemestre_id": formsemestre_id},