Fix test unitaire jury BUT (bug dans le setup test)
This commit is contained in:
parent
063e59f172
commit
d103b14142
@ -1,7 +1,7 @@
|
||||
# -*- mode: python -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
SCOVERSION = "9.4.74"
|
||||
SCOVERSION = "9.4.75"
|
||||
|
||||
SCONAME = "ScoDoc"
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user