Fix: nb d'UE à valider pour formations APC sans inscriptions aux parcours

This commit is contained in:
Emmanuel Viennet 2023-05-30 22:49:41 +02:00 committed by iziram
parent b7e6b9400f
commit 462fbc802a

View File

@ -288,7 +288,7 @@ class ResultatsSemestreBUT(NotesTableCompat):
if ref_comp is None:
return set()
if parcour_id is None:
ues_ids = {ue.id for ue in self.ues}
ues_ids = {ue.id for ue in self.ues if ue.type != UE_SPORT}
else:
parcour: ApcParcours = ApcParcours.query.get(parcour_id)
annee = (self.formsemestre.semestre_id + 1) // 2