forked from ScoDoc/ScoDoc
Jury BUT: erreur si UE d'un RCUE sans niveau de comp.
This commit is contained in:
parent
20d4b4e1b3
commit
fdcf6388f5
@ -114,10 +114,13 @@ class EtudCursusBUT:
|
|||||||
validation_rcue: ApcValidationRCUE
|
validation_rcue: ApcValidationRCUE
|
||||||
for validation_rcue in ApcValidationRCUE.query.filter_by(etud=etud):
|
for validation_rcue in ApcValidationRCUE.query.filter_by(etud=etud):
|
||||||
niveau = validation_rcue.niveau()
|
niveau = validation_rcue.niveau()
|
||||||
if (
|
if niveau is None:
|
||||||
niveau is None
|
raise ScoValueError(
|
||||||
or not niveau.competence.id in self.validation_par_competence_et_annee
|
"""UE d'un RCUE non associée à un niveau de compétence.
|
||||||
):
|
Vérifiez la formation et les associations de ses UEs.
|
||||||
|
"""
|
||||||
|
)
|
||||||
|
if not niveau.competence.id in self.validation_par_competence_et_annee:
|
||||||
self.validation_par_competence_et_annee[niveau.competence.id] = {}
|
self.validation_par_competence_et_annee[niveau.competence.id] = {}
|
||||||
previous_validation = self.validation_par_competence_et_annee.get(
|
previous_validation = self.validation_par_competence_et_annee.get(
|
||||||
niveau.competence.id
|
niveau.competence.id
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# -*- mode: python -*-
|
# -*- mode: python -*-
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
SCOVERSION = "9.6.946"
|
SCOVERSION = "9.6.947"
|
||||||
|
|
||||||
SCONAME = "ScoDoc"
|
SCONAME = "ScoDoc"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user