Fix: do_formsemestre_inscription_with_modules args
This commit is contained in:
parent
c9b4058717
commit
7af381becc
@ -266,7 +266,7 @@ def do_formsemestre_desinscription(etudid, formsemestre_id):
|
||||
def do_formsemestre_inscription_with_modules(
|
||||
formsemestre_id,
|
||||
etudid,
|
||||
group_ids=[],
|
||||
group_ids: list = None,
|
||||
etat=scu.INSCRIT,
|
||||
etape=None,
|
||||
method="inscription_with_modules",
|
||||
@ -274,6 +274,9 @@ def do_formsemestre_inscription_with_modules(
|
||||
"""Inscrit cet etudiant à ce semestre et TOUS ses modules STANDARDS
|
||||
(donc sauf le sport)
|
||||
"""
|
||||
group_ids = group_ids or []
|
||||
if isinstance(group_ids, int):
|
||||
group_ids = [group_ids]
|
||||
formsemestre = FormSemestre.query.get_or_404(formsemestre_id)
|
||||
# inscription au semestre
|
||||
args = {"formsemestre_id": formsemestre_id, "etudid": etudid}
|
||||
|
Loading…
Reference in New Issue
Block a user