Use the new JinjaService
This commit is contained in:
parent
3619240bae
commit
1671caacec
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue