version 1.11, 2002/11/22 03:46:57
|
version 1.13, 2002/11/22 04:04:10
|
Line 116 sub BuildAnalyzePage {
|
Line 116 sub BuildAnalyzePage {
|
$r->rflush(); |
$r->rflush(); |
} |
} |
|
|
my $error = |
# my $error = |
&Apache::loncoursedata::DownloadStudentCourseDataSeparate($students, |
# &Apache::loncoursedata::DownloadStudentCourseDataSeparate($students, |
'true', |
# 'true', |
$cacheDB, |
# $cacheDB, |
'true', |
# 'true', |
'true', |
# 'true', |
$courseID, |
# $courseID, |
$r, $c); |
# $r, $c); |
if($error ne 'OK') { |
# if($error ne 'OK') { |
$r->print($error.'<br>Error downloading course data<br>'); |
# $r->print($error.'<br>Error downloading course data<br>'); |
return; |
# return; |
} |
# } |
|
|
|
|
unless(tie(%cache,'GDBM_File',$cacheDB,&GDBM_READER(),0640)) { |
unless(tie(%cache,'GDBM_File',$cacheDB,&GDBM_READER(),0640)) { |
Line 348 sub OpStatus {
|
Line 348 sub OpStatus {
|
|
|
foreach my $id (@$ids) { |
foreach my $id (@$ids) { |
my ($part, $response) = split(/\./, $id); |
my ($part, $response) = split(/\./, $id); |
=pod |
#=pod |
my %reshash=&Apache::lonnet::restore($symb,$courseID,$udom,$uname); |
my %reshash=&Apache::lonnet::restore($symb,$courseID,$udom,$uname); |
if ($reshash{'version'}) { |
if ($reshash{'version'}) { |
my $tries=0; |
my $tries=0; |
Line 370 sub OpStatus {
|
Line 370 sub OpStatus {
|
my %submission=&Apache::lonnet::str2hash($Resp); |
my %submission=&Apache::lonnet::str2hash($Resp); |
foreach (keys %submission) { |
foreach (keys %submission) { |
my $Ansr = $analyzeData->{"$Id1.$Id2.foil.value.$_"}; |
my $Ansr = $analyzeData->{"$Id1.$Id2.foil.value.$_"}; |
if ($submission{$_}) { |
if($submission{$_} eq $Ansr) { |
if ($submission{$_} eq $Ansr) { |
&Decide("true", $foil_to_concept->{$_}, |
&Decide("true",$_,$time ); |
$time, $ConceptData); |
} |
} else { |
else {&Decide("false",$_,$time );} |
&Decide("false", $foil_to_concept->{$_}, |
} |
$time, $ConceptData); |
|
} |
} |
} |
} |
} |
} |
} |
} |
} |
} |
} |
=cut |
#=cut |
|
=pod |
my $time=$cache->{$student.':'.$problemID.':'.$part.':timestamp'}; |
my $time=$cache->{$student.':'.$problemID.':'.$part.':timestamp'}; |
my @submissions = split(':::', $cache->{$student.':'.$problemID.':'. |
my @submissions = split(':::', $cache->{$student.':'.$problemID.':'. |
$part.':'.$response. |
$part.':'.$response. |
Line 402 sub OpStatus {
|
Line 403 sub OpStatus {
|
} |
} |
} |
} |
} |
} |
|
=cut |
|
|
} |
} |
|
|
return; |
return; |