version 1.15, 2003/07/16 20:30:36
|
version 1.16, 2003/08/01 13:33:41
|
Line 411 sub outsheet_recursive_excel {
|
Line 411 sub outsheet_recursive_excel {
|
|
|
sub compute { |
sub compute { |
my $self = shift; |
my $self = shift; |
$self->logthis('computing'); |
|
if (! defined($current_course) || |
if (! defined($current_course) || |
$current_course ne $ENV{'request.course.id'}) { |
$current_course ne $ENV{'request.course.id'}) { |
$current_course = $ENV{'request.course.id'}; |
$current_course = $ENV{'request.course.id'}; |
Line 589 sub save_export_data {
|
Line 588 sub save_export_data {
|
my $newstore = join('___;___', |
my $newstore = join('___;___', |
@{$Exportrows{$student}->{'data'}}); |
@{$Exportrows{$student}->{'data'}}); |
$newstore = '___=___'.$newstore; |
$newstore = '___=___'.$newstore; |
&Apache::lonnet::put('nohist_calculatedsheets', |
my $result= &Apache::lonnet::put('nohist_calculatedsheets', |
{ $key => $newstore, |
{ $key => $newstore, |
$timekey => $Exportrows{$student}->{'time'} }, |
$timekey => $Exportrows{$student}->{'time'} }, |
$self->{'cdom'}, |
$self->{'cdom'}, |
Line 616 sub export_data {
|
Line 615 sub export_data {
|
my $student = $self->{'name'}.':'.$self->{'domain'}; |
my $student = $self->{'name'}.':'.$self->{'domain'}; |
if (! exists($Exportrows{$student}) || |
if (! exists($Exportrows{$student}) || |
! defined($Exportrows{$student}) || |
! defined($Exportrows{$student}) || |
|
! exists($Exportrows{$student}->{'data'}) || |
! defined($Exportrows{$student}->{'data'}) || |
! defined($Exportrows{$student}->{'data'}) || |
|
! exists($Exportrows{$student}->{'time'}) || |
|
! defined($Exportrows{$student}->{'time'}) || |
! $self->check_expiration_time($Exportrows{$student}->{'time'})) { |
! $self->check_expiration_time($Exportrows{$student}->{'time'})) { |
$self->compute(); |
$self->compute(); |
} |
} |