forked from ScoDoc/ScoDoc
Update opolka/ScoDoc from ScoDoc/ScoDoc #2
@ -471,9 +471,16 @@ class ApcNiveau(db.Model, XMLModel):
|
|||||||
for pn in parcour_niveaux
|
for pn in parcour_niveaux
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
niveaux: list[ApcNiveau] = competence.niveaux.filter_by(
|
niveaux: list[ApcNiveau] = (
|
||||||
annee=f"BUT{int(annee)}"
|
ApcNiveau.query.filter_by(annee=f"BUT{int(annee)}")
|
||||||
).all()
|
.join(ApcCompetence)
|
||||||
|
.filter_by(id=competence.id)
|
||||||
|
.join(ApcParcoursNiveauCompetence)
|
||||||
|
.filter(ApcParcoursNiveauCompetence.niveau == ApcNiveau.ordre)
|
||||||
|
.join(ApcAnneeParcours)
|
||||||
|
.filter_by(parcours_id=parcour.id)
|
||||||
|
.all()
|
||||||
|
)
|
||||||
_cache[key] = niveaux
|
_cache[key] = niveaux
|
||||||
return niveaux
|
return niveaux
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user