From 0f8998c891e11469a47f0cc78d096952f8a0ca26 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 2 Feb 2023 19:51:50 +0100 Subject: [PATCH] Fix: suppression semestre avec dispense UE --- app/scodoc/sco_formsemestre_edit.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/scodoc/sco_formsemestre_edit.py b/app/scodoc/sco_formsemestre_edit.py index 16ed01c7b..210d1e76c 100644 --- a/app/scodoc/sco_formsemestre_edit.py +++ b/app/scodoc/sco_formsemestre_edit.py @@ -1629,7 +1629,9 @@ def do_formsemestre_delete(formsemestre_id): req = """DELETE FROM notes_formsemestre_etapes WHERE formsemestre_id=%(formsemestre_id)s""" cursor.execute(req, {"formsemestre_id": formsemestre_id}) - + # --- Dispenses d'UE + req = """DELETE FROM "dispenseUE" WHERE formsemestre_id=%(formsemestre_id)s""" + cursor.execute(req, {"formsemestre_id": formsemestre_id}) # --- Destruction du semestre sco_formsemestre._formsemestreEditor.delete(cnx, formsemestre_id)