Skip to content

Commit c4618ab

Browse files
author
foo
committed
Use self.parent.notebook_dir instead of undefined self._root_dir
1 parent f76acca commit c4618ab

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nbgrader/server_extensions/assignment_list/handlers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,10 @@ def list_submitted_assignments(self, course_id=None):
144144
if submission['local_feedback_path'] \
145145
and os.path.exists(submission['local_feedback_path']):
146146
submission['local_feedback_path'] = \
147-
os.path.relpath(submission['local_feedback_path'],
148-
self._root_dir)
147+
os.path.relpath(
148+
submission['local_feedback_path'],
149+
self.parent.notebook_dir
150+
)
149151
assignment["submissions"] = sorted(
150152
assignment["submissions"],
151153
key=lambda x: x["timestamp"])

0 commit comments

Comments
 (0)