Fix petits cours

This commit is contained in:
Martin Pépin 2016-09-22 14:01:01 +02:00
parent 8bd928e4c5
commit ac3c79daca

View file

@ -135,7 +135,7 @@ def _finalize_traitement(request, demande, proposals, proposed_for,
unsatisfied, attribdata, redo=False, errors=None):
proposals = proposals.items()
proposed_for = proposed_for.items()
# attribdata = attribdata.items()
attribdata = list(attribdata.items())
proposed_mails = _generate_eleve_email(demande, proposed_for)
mainmail = render_template("petits-cours-mail-demandeur.txt",
{"proposals": proposals,
@ -153,7 +153,8 @@ def _finalize_traitement(request, demande, proposals, proposed_for,
"proposed_mails": proposed_mails,
"mainmail": mainmail,
"attribdata":
base64.b64encode(simplejson.dumps(attribdata).encode('utf_8')),
base64.b64encode(simplejson.dumps(attribdata)
.encode('utf_8')),
"redo": redo,
"errors": errors,
})