[LON-CAPA-cvs] cvs: loncom /interface/statistics lonproblemstatistics.pm

matthew lon-capa-cvs@mail.lon-capa.org
Wed, 16 Jun 2004 14:21:17 -0000


matthew		Wed Jun 16 10:21:17 2004 EDT

  Modified files:              
    /loncom/interface/statistics	lonproblemstatistics.pm 
  Log:
  Statistics are not valide on surveys.
  
  
Index: loncom/interface/statistics/lonproblemstatistics.pm
diff -u loncom/interface/statistics/lonproblemstatistics.pm:1.87 loncom/interface/statistics/lonproblemstatistics.pm:1.88
--- loncom/interface/statistics/lonproblemstatistics.pm:1.87	Fri Jun  4 17:42:18 2004
+++ loncom/interface/statistics/lonproblemstatistics.pm	Wed Jun 16 10:21:16 2004
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: lonproblemstatistics.pm,v 1.87 2004/06/04 21:42:18 matthew Exp $
+# $Id: lonproblemstatistics.pm,v 1.88 2004/06/16 14:21:16 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1387,6 +1387,7 @@
     foreach my $res (@{$seq->{'contents'}}) {
         next if ($res->{'type'} ne 'assessment');
         foreach my $part (@{$res->{'parts'}}) {
+            next if ($res->{'partdata'}->{$part}->{'Survey'});
             #
             # This is where all the work happens
             my $data = &get_statistics($seq,$res,$part,scalar(@StatsArray)+1);