Skip to content

Commit

Permalink
update scripts to catch custom admin course name
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Jordan committed Jan 20, 2024
1 parent efe55f8 commit ee367c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/update-OPL-statistics.pl
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ BEGIN
print "\n";
}

next if $courseID eq 'admin' || $courseID eq 'modelCourse';
next if $courseID eq $ce->{admin_course_id} || $courseID eq 'modelCourse';

# we extract the identifying information of the problem,
# the status, attempted flag, number of attempts.
Expand Down
6 changes: 3 additions & 3 deletions bin/upgrade_admin_db.pl
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ BEGIN
##########################
# update admin course
##########################
my $upgrade_courseID = 'admin';

my $ce = WeBWorK::CourseEnvironment->new({
my $ce = WeBWorK::CourseEnvironment->new({ webwork_dir => $ENV{WEBWORK_ROOT} });
my $upgrade_courseID = $ce->{admin_course_id};
$ce = WeBWorK::CourseEnvironment->new({
webwork_dir => $ENV{WEBWORK_ROOT},
courseName => $upgrade_courseID,
});
Expand Down

0 comments on commit ee367c1

Please sign in to comment.