Skip to content

Commit

Permalink
use listProblemVersions instead of listUserProblems
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Jordan committed Nov 14, 2023
1 parent 3935d60 commit c0163db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/WeBWorK/ContentGenerator/Hardcopy.pm
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ sub display_form ($c) {
my $the_set_version = $2;
$mergedSet = $db->getMergedSetVersion($user_id, $the_set_id, $the_set_version);
my $mergedProblem = $db->getMergedProblemVersion($user_id, $the_set_id, $the_set_version,
($db->listUserProblems($user_id, $the_set_id))[0]);
($db->listProblemVersions($user_id, $the_set_id, $the_set_version))[0]);

# Get the parameters needed to determine if correct answers may be shown.
my $maxAttempts = $mergedSet->attempts_per_version() || 0;
Expand Down
2 changes: 1 addition & 1 deletion lib/WeBWorK/ContentGenerator/LoginProctor.pm
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async sub initialize ($c) {
$c->stash->{userSet},
$db->getMergedProblemVersion(
$effectiveUserID, $c->stash->{setID},
$versionNum, ($db->listUserProblems($effectiveUserID, $c->stash->{setID}))[0]
$versionNum, ($db->listProblemVersions($effectiveUserID, $c->stash->{setID}, $versionNum))[0]
)
))
{
Expand Down

0 comments on commit c0163db

Please sign in to comment.