Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
2 changed files with 4 additions and 1 deletions
Showing only changes of commit 3844ae46d1 - Show all commits

View File

@ -512,6 +512,8 @@ def formation_semestre_niveaux_warning(formation: Formation, semestre_idx: int)
""" """
annee = (semestre_idx - 1) // 2 + 1 # année BUT annee = (semestre_idx - 1) // 2 + 1 # année BUT
ref_comp: ApcReferentielCompetences = formation.referentiel_competence ref_comp: ApcReferentielCompetences = formation.referentiel_competence
if not ref_comp:
return "" # détecté ailleurs...
niveaux_sans_ue_by_parcour = {} # { parcour.code : [ ue ... ] } niveaux_sans_ue_by_parcour = {} # { parcour.code : [ ue ... ] }
parcours_ids = { parcours_ids = {
uep.parcours_id uep.parcours_id

View File

@ -28,7 +28,6 @@
from flask.templating import render_template from flask.templating import render_template
from app import db from app import db
from app.but import cursus_but
from app.models import UniteEns, Matiere, Module, FormSemestre, ModuleImpl from app.models import UniteEns, Matiere, Module, FormSemestre, ModuleImpl
from app.models.validations import ScolarFormSemestreValidation from app.models.validations import ScolarFormSemestreValidation
from app.scodoc import codes_cursus from app.scodoc import codes_cursus
@ -48,6 +47,8 @@ def html_edit_formation_apc(
- Les ressources - Les ressources
- Les SAÉs - Les SAÉs
""" """
from app.but import cursus_but
cursus = formation.get_cursus() cursus = formation.get_cursus()
assert cursus.APC_SAE assert cursus.APC_SAE