From 0f9b52bc9b8a0431866c0d5290da947f05361807 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 15 Sep 2021 00:54:18 +0200 Subject: [PATCH] fix sco_inscr_passage --- app/scodoc/sco_inscr_passage.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/scodoc/sco_inscr_passage.py b/app/scodoc/sco_inscr_passage.py index d78aba937..1635dec77 100644 --- a/app/scodoc/sco_inscr_passage.py +++ b/app/scodoc/sco_inscr_passage.py @@ -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, )