Use the new JinjaService

This commit is contained in:
mike cullerton 2021-10-21 10:30:42 -04:00
parent 3619240bae
commit 1671caacec
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ def render_docx():
file = connexion.request.files['file'] file = connexion.request.files['file']
data = connexion.request.form['data'] data = connexion.request.form['data']
# TODO: This bypasses the Jinja service and uses complete_template script # TODO: This bypasses the Jinja service and uses complete_template script
target_stream = CompleteTemplate().make_template(file, json.loads(data)) target_stream = JinjaService().make_template(file, json.loads(data))
return send_file( return send_file(
io.BytesIO(target_stream.read()), io.BytesIO(target_stream.read()),
as_attachment=True, as_attachment=True,