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
Showing only changes of commit bb9995fca6 - Show all commits

View File

@ -986,10 +986,11 @@ def do_formsemestre_createwithmodules(edit=False, formsemestre: FormSemestre = N
for parcour_id_str in tf[2]["parcours"] for parcour_id_str in tf[2]["parcours"]
] ]
# --- Id edt du groupe par défault # --- Id edt du groupe par défault
group_tous = formsemestre.get_default_group() if "edt_promo_id" in tf[2]:
if group_tous: group_tous = formsemestre.get_default_group()
group_tous.edt_id = tf[2]["edt_promo_id"] if group_tous:
db.session.add(group_tous) group_tous.edt_id = tf[2]["edt_promo_id"]
db.session.add(group_tous)
db.session.add(formsemestre) db.session.add(formsemestre)
db.session.commit() db.session.commit()