From cf63e1c038cac6007c9411d49b3cfd619a529d38 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 18 Jan 2023 06:31:49 -0300 Subject: [PATCH] Fix: affichage cursus BUT si un sem n'a pas de ref. comp. --- app/but/cursus_but.py | 7 +++++-- sco_version.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/but/cursus_but.py b/app/but/cursus_but.py index 9ae1671a..7f5c00b8 100644 --- a/app/but/cursus_but.py +++ b/app/but/cursus_but.py @@ -92,8 +92,11 @@ class EtudCursusBUT: [ ins for ins in etud.formsemestre_inscriptions - if ins.formsemestre.formation.referentiel_competence.id - == formation.referentiel_competence.id + if ins.formsemestre.formation.referentiel_competence + and ( + ins.formsemestre.formation.referentiel_competence.id + == formation.referentiel_competence.id + ) ], key=lambda s: (s.formsemestre.semestre_id, s.formsemestre.date_debut), ) diff --git a/sco_version.py b/sco_version.py index 89e2cd42..f62df4c9 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.4.27" +SCOVERSION = "9.4.28" SCONAME = "ScoDoc"