--- loncom/interface/Attic/lonchart.pm 2001/11/22 17:05:07 1.11
+++ loncom/interface/Attic/lonchart.pm 2001/11/22 17:25:30 1.12
@@ -76,8 +76,6 @@ sub ExtractStudentData {
}
$ResId=~/(\d+)\.(\d+)/;
my $meta=$hash{'src_'.$ResId};
-# $r->print($m.'
');
-# $r->rflush();
my $PartNo = 0;
undef %TempHash;
map {
@@ -92,22 +90,12 @@ sub ExtractStudentData {
}
} split(/\,/,&Apache::lonnet::metadata($meta,'keys'));
-# foreach my $Key (%TempHash) {
-# $r->print($Key.' = '.$TempHash{$Key}.'
');
-# $r->rflush();
-# }
-
-$r->print($PartNo.'
');$r->rflush();
-
my $Prob = &Apache::lonnet::declutter( $hash{'map_id_'.$1} ).
'___'.$2.'___'.
&Apache::lonnet::declutter( $hash{'src_'.$ResId} );
$Code=' ';
$Tries = 0;
$LatestVersion = $result{"version:$Prob"};
-
- #undef %TempHash;
- #my $PartNo = 0;
if ( $LatestVersion ) {
for ( my $Version=1; $Version<=$LatestVersion; $Version++ ) {
@@ -116,12 +104,6 @@ $r->print($PartNo.'
');$r->rflush();
foreach my $Key (@keys) {
if (($Key=~/\.(\w+)\.solved$/) && ($Key!~/^\d+\:/)) {
my $Part = $1;
- #if ( $TempHash{"$Part"} eq '' ) {
- # $TempHash{"$Part"} = $Part;
- #$TempHash{$PartNo}=$Part;
- #$TempHash{"$Part.Code"} = ' ';
- #$PartNo++;
- #}
$TempHash{"$Part.Tries"} = $result{"$Version:$Prob:resource.$Part.tries"};
$Tries = $result{"$Version:$Prob:resource.$Part.tries"};
my $Val = $result{"$Version:$Prob:$Key"};