From ad64ea6c2071d7a1e262f8a5287e484e225a70e3 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 6 Jul 2005 02:02:13 +0000 Subject: [PATCH] Grade support for new school --- perl/sctweb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/perl/sctweb b/perl/sctweb index a673d8b..614d63e 100755 --- a/perl/sctweb +++ b/perl/sctweb @@ -188,7 +188,7 @@ sub off_for_exams { } sub capitalize { - local $_ = shift; + local $_ = shift || ""; s/ +$//; s/\b([A-Z])([A-Z]*)\b/$1\L$2/g; s/\b(I)(i*)\b/$1\U$2/g; @@ -559,6 +559,7 @@ sub do_html_schedule { sub do_html_grades { my @readheaders = ("Section ID", "Course Title", "Grade", "Earned Hours", "Quality Hours", "Quality Points", "GPA"); + @readheaders = ("Section", "Course Title", "FinalGrade", "Earned Hours", "Quality Hours", "Quality Points", "GPA") if($opts{'school'} eq 'tamuk'); my @showheaders = ("Section ID", "Course Title", "Grade", "Earned
Hours", "Quality
Hours", "Quality
Points"); my ($row, $lastrow); my $te = new HTML::TableExtract( headers => [ @readheaders ] ); @@ -567,7 +568,7 @@ sub do_html_grades { #my @terms = reverse grep {s/^