Skip to content

Commit

Permalink
Also set correct template in api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamrick committed Mar 18, 2021
1 parent caec1e6 commit dd35f67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nbgrader/apps/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit dd35f67

Please sign in to comment.