From 0fb45fc9ca2e5c60a8712d81dcf85ad7b4491ce7 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 29 Jan 2024 17:21:49 +0100 Subject: [PATCH] =?UTF-8?q?Bonus=20IUT=20Littoral:=20modif=20r=C3=A8gle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/comp/bonus_spo.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/comp/bonus_spo.py b/app/comp/bonus_spo.py index 96505d167..24d9918a3 100644 --- a/app/comp/bonus_spo.py +++ b/app/comp/bonus_spo.py @@ -669,8 +669,8 @@ class BonusCalais(BonusSportAdditif): """ @@ -692,12 +692,14 @@ class BonusCalais(BonusSportAdditif): else: self.classic_use_bonus_ues = True # pour les LP super().compute_bonus(sem_modimpl_moys_inscrits, modimpl_coefs_etuds_no_nan) - ues = self.formsemestre.get_ues(with_sport=False) - ues_sans_bs = [ - ue for ue in ues if ue.acronyme[-2:].upper() != "BS" - ] # les 2 derniers cars forcés en majus - for ue in ues_sans_bs: - self.bonus_ues[ue.id] = 0.0 + if self.formsemestre.annee_scolaire() < 2023: + # ne s'applique qu'aux UE dont l'acronyme termine par BS + ues = self.formsemestre.get_ues(with_sport=False) + ues_sans_bs = [ + ue for ue in ues if ue.acronyme[-2:].upper() != "BS" + ] # les 2 derniers cars forcés en majus + for ue in ues_sans_bs: + self.bonus_ues[ue.id] = 0.0 class BonusColmar(BonusSportAdditif):