From 72cad15b372f8925de3263f7abfedb844e13432a Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 14 Mar 2022 09:44:31 +0100 Subject: [PATCH] Fix: bul. BUT si poids vers UE bonus --- app/but/bulletin_but.py | 11 +++++++---- sco_version.py | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/but/bulletin_but.py b/app/but/bulletin_but.py index 067840cd7..db129f9d3 100644 --- a/app/but/bulletin_but.py +++ b/app/but/bulletin_but.py @@ -216,7 +216,8 @@ class BulletinBUT: details = [ f"{fmt_note(bonus_vect[ue.id])} sur {ue.acronyme}" for ue in res.ues - if res.modimpls_in_ue(ue.id, etudid) + if ue.type != UE_SPORT + and res.modimpls_in_ue(ue.id, etudid) and ue.id in res.bonus_ues and bonus_vect[ue.id] > 0.0 ] @@ -308,9 +309,11 @@ class BulletinBUT: "ues": { ue.acronyme: self.etud_ue_results(etud, ue) for ue in res.ues - if self.res.modimpls_in_ue( - ue.id, etud.id - ) # si l'UE comporte des modules auxquels on est inscrit + # si l'UE comporte des modules auxquels on est inscrit: + if ( + (ue.type == UE_SPORT) + or self.res.modimpls_in_ue(ue.id, etud.id) + ) }, "semestre": semestre_infos, }, diff --git a/sco_version.py b/sco_version.py index b0f7091e3..7657bac43 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.1.77" +SCOVERSION = "9.1.78" SCONAME = "ScoDoc"