From 6bfd461bf2fff6cafefb318ff5ca117d5a1c46de Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 27 Mar 2024 09:22:34 +0100 Subject: [PATCH] Fix: jury BUT cas particulier sans ue --- app/but/jury_but_view.py | 3 +++ sco_version.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/but/jury_but_view.py b/app/but/jury_but_view.py index 169abdf2..1f2a8a17 100644 --- a/app/but/jury_but_view.py +++ b/app/but/jury_but_view.py @@ -110,17 +110,20 @@ def show_etud(deca: DecisionsProposeesAnnee, read_only: bool = True) -> str: ) ue_impair, ue_pair = rcue.ue_1, rcue.ue_2 # Les UEs à afficher : on regarde si read only et si dispense (non ré-inscription à l'UE) + # tuples (UniteEns, read_only, dispense) ues_ro_dispense = [ ( ue_impair, rcue.ue_cur_impair is None, deca.res_impair + and ue_impair and (deca.etud.id, ue_impair.id) in deca.res_impair.dispense_ues, ), ( ue_pair, rcue.ue_cur_pair is None, deca.res_pair + and ue_pair and (deca.etud.id, ue_pair.id) in deca.res_pair.dispense_ues, ), ] diff --git a/sco_version.py b/sco_version.py index e0361b07..696c6af3 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.6.955" +SCOVERSION = "9.6.956" SCONAME = "ScoDoc"