From 08d6349672483cf1e3c22192b23d64b0605ed061 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 8 Jul 2024 10:01:42 +0200 Subject: [PATCH] Fix: formsemestre_validation_auto_but --- app/but/jury_but_validation_auto.py | 5 ++--- sco_version.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/but/jury_but_validation_auto.py b/app/but/jury_but_validation_auto.py index 97782ee15..94ee7091f 100644 --- a/app/but/jury_but_validation_auto.py +++ b/app/but/jury_but_validation_auto.py @@ -44,12 +44,11 @@ def formsemestre_validation_auto_but( if not dry_run: modified = deca.record_all(only_validantes=only_adm) modified |= validation_dut120_auto(etud, formsemestre) + if modified: + nb_etud_modif += 1 else: decas.append(deca) - if modified: - nb_etud_modif += 1 - db.session.commit() ScolarNews.add( typ=ScolarNews.NEWS_JURY, diff --git a/sco_version.py b/sco_version.py index 5a56a8eda..83e63da97 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.6.988" +SCOVERSION = "9.6.989" SCONAME = "ScoDoc"