Skip to content

Commit

Permalink
set is_graded on data object
Browse files Browse the repository at this point in the history
  • Loading branch information
rybesh committed Mar 10, 2021
1 parent c167e91 commit 9a93641
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion courses/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,10 @@ def setdefault(username):
continue

grades = {}
data = {'title': assignment.title}
data = {
'title': assignment.title,
'is_graded': assignment.is_graded
}
for submission in assignment.submissions.all():
if submission.submitter.username in students:
grades[submission.submitter.username] = submission.get_grade()
Expand Down

0 comments on commit 9a93641

Please sign in to comment.