--- loncom/interface/statistics/lonproblemstatistics.pm 2004/03/29 15:58:33 1.74 +++ loncom/interface/statistics/lonproblemstatistics.pm 2004/03/29 18:22:28 1.75 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonproblemstatistics.pm,v 1.74 2004/03/29 15:58:33 matthew Exp $ +# $Id: lonproblemstatistics.pm,v 1.75 2004/03/29 18:22:28 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -310,18 +310,34 @@ sub BuildProblemStatisticsPage { # This probably does not need to be done each time we are called, but # it does not slow things down noticably. &Apache::loncoursedata::populate_weight_table(); + # if (exists($ENV{'form.Excel'})) { &Excel_output($r); } else { + my $count = 0; + foreach my $seq (&Apache::lonstatistics::Sequences_with_Assess()) { + $count += $seq->{'num_assess'}; + } + if ($count > 10) { + $r->print('