Skip to content

Commit

Permalink
return -1 (not 0) when no sets meet grade passback criteria for cours…
Browse files Browse the repository at this point in the history
…e grade passback
  • Loading branch information
Alex-Jordan committed Dec 3, 2024
1 parent c5fdb38 commit f97d4c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/WeBWorK/Authen/LTIAdvanced/SubmitGrade.pm
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ async sub submit_course_grade ($self, $userID, $submittedSet = undef) {
return await $self->submit_grade($user->lis_source_did, $score);
} else {
$self->warning("No sets for user $userID meet criteria to be included in course grade calculation.");
return 0;
return -1;
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/WeBWorK/Authen/LTIAdvantage/SubmitGrade.pm
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ async sub submit_course_grade ($self, $userID, $submittedSet = undef) {
return await $self->submit_grade($user->lis_source_did, $lineitem, $courseTotalRight, $courseTotal);
} else {
$self->warning("No sets for user $userID meet criteria to be included in course grade calculation.");
return 0;
return -1;
}
}

Expand Down

0 comments on commit f97d4c5

Please sign in to comment.