diff --git a/lib/Caliper/Entity.pm b/lib/Caliper/Entity.pm index 13d9561a79..78883b765e 100644 --- a/lib/Caliper/Entity.pm +++ b/lib/Caliper/Entity.pm @@ -372,7 +372,7 @@ sub problem_set_attempt { my $extensions = { 'attempt_score' => $score, }; if ($version_id) { - $extensions->{'gateway_score'} = grade_gateway($db, $problem_set_user, $problem_set_user->set_id, $user_id); + $extensions->{'gateway_score'} = grade_gateway($db, $problem_set_user->set_id, $user_id); } my $problem_set_attempt = { diff --git a/lib/WeBWorK/Authen/LTIAdvanced/SubmitGrade.pm b/lib/WeBWorK/Authen/LTIAdvanced/SubmitGrade.pm index fb4d0541a6..13d227efca 100644 --- a/lib/WeBWorK/Authen/LTIAdvanced/SubmitGrade.pm +++ b/lib/WeBWorK/Authen/LTIAdvanced/SubmitGrade.pm @@ -154,7 +154,7 @@ async sub submit_set_grade ($self, $userID, $setID) { my $date; if ($userSet->assignment_type =~ /gateway/) { - $score = scalar(grade_gateway($db, $userSet, $userSet->set_id, $userID)); + $score = scalar(grade_gateway($db, $userSet->set_id, $userID)); $attempted = gateway_attempted($db, $userSet, $userSet->set_id, $userID); $date = earliest_gateway_date($db, $userSet->set_id, $userID, $ce->{LTISendScoresAfterDate}); } else { diff --git a/lib/WeBWorK/Authen/LTIAdvantage/SubmitGrade.pm b/lib/WeBWorK/Authen/LTIAdvantage/SubmitGrade.pm index 89dda49de0..ce8c52baf4 100644 --- a/lib/WeBWorK/Authen/LTIAdvantage/SubmitGrade.pm +++ b/lib/WeBWorK/Authen/LTIAdvantage/SubmitGrade.pm @@ -233,7 +233,7 @@ async sub submit_set_grade ($self, $userID, $setID) { my $date; if ($userSet->assignment_type =~ /gateway/) { - ($totalRight, $total) = grade_gateway($db, $userSet, $userSet->set_id, $userID); + ($totalRight, $total) = grade_gateway($db, $userSet->set_id, $userID); $attempted = gateway_attempted($db, $userSet, $userSet->set_id, $userID); $date = earliest_gateway_date($db, $userSet->set_id, $userID, $ce->{LTISendScoresAfterDate}); } else { diff --git a/lib/WeBWorK/Utils/Sets.pm b/lib/WeBWorK/Utils/Sets.pm index fca65219f3..b4aa5d0c04 100644 --- a/lib/WeBWorK/Utils/Sets.pm +++ b/lib/WeBWorK/Utils/Sets.pm @@ -123,7 +123,7 @@ sub grade_set ($db, $set, $studentName, $setIsVersioned = 0, $wantProblemDetails } } -sub grade_gateway ($db, $set, $setName, $studentName) { +sub grade_gateway ($db, $setName, $studentName) { my @versionNums = $db->listSetVersions($studentName, $setName); my $bestTotalRight = 0; @@ -204,7 +204,7 @@ sub grade_all_sets ($db, $studentName, $sendScoresAfterDate = 'open_date', $send my $date; if ($userSet->assignment_type() =~ /gateway/) { - ($totalRight, $total) = grade_gateway($db, $userSet, $userSet->set_id, $studentName); + ($totalRight, $total) = grade_gateway($db, $userSet->set_id, $studentName); $attempted = gateway_attempted($db, $userSet->set_id, $studentName); $date = earliest_gateway_date($db, $userSet->set_id, $studentName, $sendScoresAfterDate); } else { @@ -378,7 +378,7 @@ In scalar context this returns the percentage correct. =head2 grade_gateway -Usage: C +Usage: C All arguments are required.