[LON-CAPA-cvs] cvs: loncom /interface lonstatistics.pm
minaeibi
lon-capa-cvs@mail.lon-capa.org
Thu, 07 Mar 2002 00:05:22 -0000
minaeibi Wed Mar 6 19:05:22 2002 EDT
Modified files:
/loncom/interface lonstatistics.pm
Log:
Cleaning the code
Index: loncom/interface/lonstatistics.pm
diff -u loncom/interface/lonstatistics.pm:1.8 loncom/interface/lonstatistics.pm:1.9
--- loncom/interface/lonstatistics.pm:1.8 Wed Mar 6 18:56:13 2002
+++ loncom/interface/lonstatistics.pm Wed Mar 6 19:05:21 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# (Publication Handler
#
-# $Id: lonstatistics.pm,v 1.8 2002/03/06 23:56:13 minaeibi Exp $
+# $Id: lonstatistics.pm,v 1.9 2002/03/07 00:05:21 minaeibi Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -558,8 +558,6 @@
# $DisF .= '+'.$TempHash{"$part.Time"};
$TimeTot += $TempHash{"$part.Time"};
$Dis .= $TempHash{$part.'.PrOrd'}.'='.$DisF.'+'.$Yes;
-
- #$r->print('<br>'.$DisFactor,'###',$DiscFac{$DisFactor});
$ptr .= ":$TempHash{$part.'.Tries'}".
":$TempHash{$part.'.Wrongs'}".
":$TempHash{$part.'.Code'}";
@@ -579,7 +577,6 @@
my $DisFac = ( $TotalTries ) ? ($TotParCr/$TotalTries) : 0;
my $DisFactor = sprintf( "%.4f", $DisFac );
$DiscFac{$DisFactor}=$Dis;
- #$r->print('<br>'.$DisFactor,'###',$DiscFac{$DisFactor});
#my $time;
#if ($ProbSolved){
#$time = int(($TimeTot/$ProbSolved)-10000000);
@@ -1010,7 +1007,6 @@
$name=&Apache::lonnet::unescape($name);
$students[$thisindex]=$name;
my ($sname,$sdom)=split(/\:/,$name);
-
#my %reply=&Apache::lonnet::idrget($sdom,$sname);
#my $reply=&Apache::lonnet::reply('get:'.$sdom.':'.$sname.
# ':environment:lastname&generation&firstname&middlename',
@@ -1019,7 +1015,6 @@
if ($ssec==-1) {next;}
$ssec=($ssec) ? $ssec : '(none)';
#$ssec=(int($ssec)) ? int($ssec) : $ssec;
- #$r->print($sname.'...'.$ssec.'<br>');
$section{$ssec}=$ssec;
if ($CurSec eq 'All Sections' || $ssec eq $CurSec) {
$students[$StudNo]=$name;
@@ -1036,18 +1031,11 @@
$r->rflush();
# --------------- Find all assessments and put them into some linear-like order
&tracetable($firstres,'&'.$lastres.'&');
-
# my $c=0;
# foreach (sort keys %mapsort) {
# $r->print('<br>'.$c.')'.$_.' ... '.$mapsort{$_});
# $c++;
# }
-#foreach(@cols) {
-# $c++;
-# $r->print('<br>'.$cols[$c]);
-#}
-#$r->print('<br> Count = '.$c);
-
}
# ------------------------------------------------------------- End render page