From 66215101b571116fc2df2a7be4b2bc5257d62caf Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 16 May 2023 10:56:37 +0200 Subject: [PATCH] Fix: bonus sport si aucune UE --- app/comp/bonus_spo.py | 2 ++ sco_version.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/comp/bonus_spo.py b/app/comp/bonus_spo.py index d9ca76bbb..64ba29799 100644 --- a/app/comp/bonus_spo.py +++ b/app/comp/bonus_spo.py @@ -106,6 +106,8 @@ class BonusSport: if formsemestre.formation.is_apc(): # BUT nb_ues_no_bonus = sem_modimpl_moys.shape[2] + if nb_ues_no_bonus == 0: # aucune UE... + return # no bonus at all # Duplique les inscriptions sur les UEs non bonus: modimpl_inscr_spo_stacked = np.stack( [modimpl_inscr_spo] * nb_ues_no_bonus, axis=2 diff --git a/sco_version.py b/sco_version.py index 8c22b2387..071863e32 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.4.76" +SCOVERSION = "9.4.77" SCONAME = "ScoDoc"