From 1671caacecf739f932dc4bcac6780b1a78628cb6 Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Thu, 21 Oct 2021 10:30:42 -0400 Subject: [PATCH] Use the new JinjaService --- crc/api/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crc/api/tools.py b/crc/api/tools.py index b21b7990..668986b7 100644 --- a/crc/api/tools.py +++ b/crc/api/tools.py @@ -41,7 +41,7 @@ def render_docx(): file = connexion.request.files['file'] data = connexion.request.form['data'] # 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( io.BytesIO(target_stream.read()), as_attachment=True,