Skip to content

Commit 7ad3968

Browse files
committed
update scripts to catch custom admin course name
1 parent efe55f8 commit 7ad3968

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bin/update-OPL-statistics.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ BEGIN
111111
print "\n";
112112
}
113113

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

116116
# we extract the identifying information of the problem,
117117
# the status, attempted flag, number of attempts.

bin/upgrade_admin_db.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ BEGIN
3131
##########################
3232
# update admin course
3333
##########################
34-
my $upgrade_courseID = 'admin';
35-
36-
my $ce = WeBWorK::CourseEnvironment->new({
34+
my $ce = WeBWorK::CourseEnvironment->new({ webwork_dir => $ENV{WEBWORK_ROOT} });
35+
my $upgrade_courseID = $ce->{admin_course_id};
36+
$ce = WeBWorK::CourseEnvironment->new({
3737
webwork_dir => $ENV{WEBWORK_ROOT},
3838
courseName => $upgrade_courseID,
3939
});

0 commit comments

Comments
 (0)