Skip to content

Commit 772512a

Browse files
author
dlglin
committed
Fix typo in Grades.pm that was causing global problem data to sometimes be stored in the problem_user record
1 parent 27cda6d commit 772512a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/WeBWorK/ContentGenerator/Grades.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ sub grade_set {
498498
my $attempted = $problemRecord->attempted;
499499
my $num_correct = $problemRecord->num_correct || 0;
500500
my $num_incorrect = $problemRecord->num_incorrect || 0;
501-
$num_of_attempts += $num_correct + $num_incorrect;
501+
$num_of_attempts = $num_correct + $num_incorrect;
502502

503503
#######################################################
504504
# This is a fail safe mechanism that makes sure that

0 commit comments

Comments
 (0)