--- loncom/interface/statistics/lonstudentsubmissions.pm 2004/03/03 22:58:49 1.6 +++ loncom/interface/statistics/lonstudentsubmissions.pm 2004/03/12 21:13:11 1.8 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstudentsubmissions.pm,v 1.6 2004/03/03 22:58:49 matthew Exp $ +# $Id: lonstudentsubmissions.pm,v 1.8 2004/03/12 21:13:11 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -163,6 +163,7 @@ sub BuildStudentSubmissionsPage { ######################################################### sub prepare_excel_output { my ($r,$problem,$ProblemData,$Students) = @_; + my $c = $r->connection(); my ($resource,$respid,$partid) = ($problem->{'resource'}, $problem->{'respid'}, $problem->{'part'}); @@ -209,6 +210,7 @@ sub prepare_excel_output { # # Populate the worksheet with the student data foreach my $student (@$Students) { + last if ($c->aborted()); my $results = &Apache::loncoursedata::get_response_data_by_student ($student,$resource->{'symb'},$respid); my %row; @@ -288,6 +290,7 @@ sub prepare_excel_output { sub GetStudentAnswers { my ($r,$problem,$Students) = @_; + my $c = $r->connection(); my %Answers; my ($resource,$partid,$respid) = ($problem->{'resource'}, $problem->{'part'}, @@ -299,6 +302,7 @@ sub GetStudentAnswers { $r->print("\n"); $r->rflush(); foreach my $student (@$Students) { + last if ($c->aborted()); my $sname = $student->{'username'}; my $sdom = $student->{'domain'}; my $answer = &Apache::lonstathelpers::analyze_problem_as_student @@ -307,6 +311,7 @@ sub GetStudentAnswers { &mt('last student')); $student->{'answer'} = $answer; } + return if ($c->aborted()); $r->print("
\n"); $r->rflush(); # close progress window @@ -344,7 +349,7 @@ sub CreateInterface { $Str .= &Apache::lonhtmlcommon::StatusOptions(undef,undef,5); $Str .= ''; # - $Str .= ''.&Apache::lonstathelpers::limit_by_time_form().''; + $Str .= ''; # my $only_seq_with_assessments = sub { my $s=shift;