1
0
forked from ScoDoc/ScoDoc

Fix: bul json et mail

This commit is contained in:
Emmanuel Viennet 2022-03-14 20:20:49 +01:00
parent e02a324165
commit 6ff10877ae

View File

@ -882,9 +882,9 @@ def do_formsemestre_bulletinetud(
return bul, ""
if formsemestre.formation.is_apc():
etud = Identite.query.get(etudid)
etudiant = Identite.query.get(etudid)
r = bulletin_but.BulletinBUT(formsemestre)
I = r.bulletin_etud_complet(etud, version=version)
I = r.bulletin_etud_complet(etudiant, version=version)
else:
I = formsemestre_bulletinetud_dict(formsemestre.id, etudid)
etud = I["etud"]
@ -930,7 +930,7 @@ def do_formsemestre_bulletinetud(
if prefer_mail_perso:
recipient_addr = etud.get("emailperso", "") or etud.get("email", "")
else:
recipient_addr = etud["email_default"]
recipient_addr = etud.get("email", "") or etud.get("emailperso", "")
if not recipient_addr:
if nohtml: