Skip to content

Commit

Permalink
Merge pull request jupyter#14 from DigiKlausur/gradeexporter_fix
Browse files Browse the repository at this point in the history
Handle bug when assignment contains several notebooks
  • Loading branch information
tmetzl authored Apr 6, 2020
2 parents 8eed79d + 92f39a5 commit a5b2fd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nbgrader/server_extensions/formgrader/gradeexporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def get_notebook_grades(self):
.filter(Notebook.assignment_id == Assignment.id) \
.filter(SubmittedAssignment.assignment_id == Assignment.id) \
.filter(SubmittedNotebook.assignment_id == SubmittedAssignment.id) \
.filter(SubmittedNotebook.notebook_id == Notebook.id) \
.filter(Grade.notebook_id == SubmittedNotebook.id) \
.group_by(SubmittedAssignment.student_id) \
.all()
Expand Down

0 comments on commit a5b2fd7

Please sign in to comment.