WIP: PR assiduites -> bac à sable prod #649

Closed
iziram wants to merge 84 commits from iziram/ScoDoc:assiduites into bac_a_sable_prod
2 changed files with 4 additions and 2 deletions
Showing only changes of commit e355c2f780 - Show all commits

View File

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

View File

@ -120,7 +120,9 @@ def create_formsemestre(
modules = [
m
for m in formsemestre.formation.modules.filter_by(semestre_id=semestre_id)
if (not m.parcours) or ({p.id for p in m.parcours} & sem_parcours_ids)
if (not m.parcours) # module de tronc commun
or (not sem_parcours_ids) # semestre sans parcours => tous
or ({p.id for p in m.parcours} & sem_parcours_ids)
]
for module in modules:
modimpl = ModuleImpl(module=module, responsable_id=a_user.id)