1
0
forked from ScoDoc/ScoDoc

fix sco_inscr_passage

This commit is contained in:
Emmanuel Viennet 2021-09-15 00:54:18 +02:00
parent 83174f2f5e
commit 0f9b52bc9b

View File

@ -146,16 +146,15 @@ def list_inscrits_date(sem):
cursor = cnx.cursor(cursor_factory=ndb.ScoDocCursor)
sem["date_debut_iso"] = ndb.DateDMYtoISO(sem["date_debut"])
cursor.execute(
"""SELECT I.etudid
FROM
notes_formsemestre_inscription ins,
"""SELECT ins.etudid
FROM
notes_formsemestre_inscription ins,
notes_formsemestre S,
identite i
WHERE ins.formsemestre_id = S.id
AND S.id != %(formsemestre_id)s
AND S.date_debut <= %(date_debut_iso)s
AND S.date_fin >= %(date_debut_iso)s
AND ins.dept_id = %(dept_id)s
AND S.dept_id = %(dept_id)s
""",
sem,
)