Fix: etud_has_notes_attente

This commit is contained in:
Emmanuel Viennet 2022-03-29 10:27:11 +02:00
parent 2d2d62fb71
commit f349c8cad9

View File

@ -78,14 +78,14 @@ def etud_has_notes_attente(etudid, formsemestre_id):
"""SELECT COUNT(*) """SELECT COUNT(*)
FROM notes_notes n, notes_evaluation e, notes_moduleimpl m, FROM notes_notes n, notes_evaluation e, notes_moduleimpl m,
notes_moduleimpl_inscription i notes_moduleimpl_inscription i
WHERE n.etudid = %(etudid)s WHERE n.etudid = :etudid
and n.value = %(code_attente)s and n.value = :code_attente
and n.evaluation_id = e.id and n.evaluation_id = e.id
and e.moduleimpl_id = m.id and e.moduleimpl_id = m.id
and m.formsemestre_id = %(formsemestre_id)s and m.formsemestre_id = :formsemestre_id
and e.coefficient != 0 and e.coefficient != 0
and m.id = i.moduleimpl_id and m.id = i.moduleimpl_id
and i.etudid=%(etudid)s and i.etudid = :etudid
""", """,
{ {
"formsemestre_id": formsemestre_id, "formsemestre_id": formsemestre_id,