Skip to content

Commit

Permalink
fix an issue in release_feedback where groupshared user could not re-…
Browse files Browse the repository at this point in the history
…release feedback
  • Loading branch information
Frans Welin committed Aug 30, 2022
1 parent 90f749b commit 85a92f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nbgrader/exchange/default/release_feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ def copy_files(self):

self.log.debug("Unique key is: {}".format(unique_key))
checksum = notebook_hash(nbfile, unique_key)
dest = os.path.join(self.dest_path, "{}.html".format(checksum))
dest = os.path.join(self.dest_path, "{}-tmp.html".format(checksum))

self.log.info("Releasing feedback for student '{}' on assignment '{}/{}/{}' ({})".format(
student_id, self.coursedir.course_id, self.coursedir.assignment_id, notebook_id, timestamp))
shutil.copy(html_file, dest)
updated_feedback = os.path.join(self.dest_path, "{}.html". format(checksum))
shutil.move(dest, updated_feedback)
self.log.info("Feedback released to: {}".format(dest))

0 comments on commit 85a92f4

Please sign in to comment.