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

raeburn lon-capa-cvs@mail.lon-capa.org
Mon, 09 Jan 2006 22:55:50 -0000


raeburn		Mon Jan  9 17:55:50 2006 EDT

  Modified files:              
    /loncom/interface	lonwhatsnew.pm 
  Log:
  Exclude problem part from display of items above thresholds if being used as a survey.
  
  
Index: loncom/interface/lonwhatsnew.pm
diff -u loncom/interface/lonwhatsnew.pm:1.47 loncom/interface/lonwhatsnew.pm:1.48
--- loncom/interface/lonwhatsnew.pm:1.47	Fri Jan  6 18:56:05 2006
+++ loncom/interface/lonwhatsnew.pm	Mon Jan  9 17:55:47 2006
@@ -1,5 +1,5 @@
 #
-# $Id: lonwhatsnew.pm,v 1.47 2006/01/06 23:56:05 raeburn Exp $
+# $Id: lonwhatsnew.pm,v 1.48 2006/01/09 22:55:47 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -890,6 +890,9 @@
         if ($resource->handgrade($part) eq 'yes') {
             next;
         }
+        if ($resource->is_survey($part)) {
+            next;
+        }
         %{$stats{$part}} = ();
         my ($attempts,$users,$corrects,$degdiff,$av_attempts);
         if (exists($$resourcetracker{$symb."\0".$part."\0attempts"})) {