From dd35f6734f09fdf478062fa7455764de17f4cdb1 Mon Sep 17 00:00:00 2001 From: "Jessica B. Hamrick" Date: Thu, 18 Mar 2021 23:06:22 +0000 Subject: [PATCH] Also set correct template in api.py --- nbgrader/apps/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nbgrader/apps/api.py b/nbgrader/apps/api.py index a3ced3be1..0480647c6 100644 --- a/nbgrader/apps/api.py +++ b/nbgrader/apps/api.py @@ -1066,8 +1066,9 @@ def generate_feedback(self, assignment_id, student_id=None, force=True): """ # Because we may be using HTMLExporter.template_file in other # parts of the the UI, we need to make sure that the template - # is explicitply 'feedback.html.j2` here: + # is explicitly 'feedback.html.j2` here: c = Config() + c.HTMLExporter.template_name = 'feedback' c.HTMLExporter.template_file = 'feedback.html.j2' if student_id is not None: with temp_attrs(self.coursedir,