Skip to content

Commit 9688b07

Browse files
committed
Initialize submission score with maximum score
Since the handling of a final submission has changed recently, we can also reuse the `maximum_score` method here.
1 parent 9fc7e3e commit 9688b07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/exercises/_editor_output.html.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
| 0
5252
= row(label: 'exercises.implement.feedback')
5353
= row(label: 'exercises.implement.messages')
54-
#score data-maximum-score[email protected]_score data-score=@exercise.final_submission(current_contributor).try(:score)
54+
#score data-maximum-score[email protected]_score data-score=@exercise.maximum_score(current_contributor)
5555
h4
5656
span
5757
= Submission.human_attribute_name('score')

0 commit comments

Comments
 (0)