Fix: bonus sport si aucune UE

This commit is contained in:
Emmanuel Viennet 2023-05-16 10:56:37 +02:00
parent ee9fd059da
commit 66215101b5
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -1,7 +1,7 @@
# -*- mode: python -*-
# -*- coding: utf-8 -*-
SCOVERSION = "9.4.76"
SCOVERSION = "9.4.77"
SCONAME = "ScoDoc"