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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 30 Jan 2004 23:38:19 -0000


albertel		Fri Jan 30 18:38:19 2004 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  - forgot to pass some parts along
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.243 loncom/interface/lonnavmaps.pm:1.244
--- loncom/interface/lonnavmaps.pm:1.243	Tue Dec 30 15:47:23 2003
+++ loncom/interface/lonnavmaps.pm	Fri Jan 30 18:38:19 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.243 2003/12/30 20:47:23 albertel Exp $
+# $Id: lonnavmaps.pm,v 1.244 2004/01/30 23:38:19 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -371,7 +371,7 @@
                 $triesString = "<b>$triesString</b>";
             }
         }
-        if ($res->duedate()) {
+        if ($res->duedate($part)) {
             return &mt("Due")." " . timeToHumanString($res->duedate($part)) .
                 " $triesString";
         } else {
@@ -393,8 +393,8 @@
 
     return ($status == $res->OPEN() ||
             $status == $res->TRIES_LEFT()) &&
-           $res->duedate() && $res->duedate() < time()+(24*60*60) &&
-           $res->duedate() > time();
+	    $res->duedate($part) && $res->duedate($part) < time()+(24*60*60) &&
+	    $res->duedate($part) > time();
 }
 
 # Convenience function, so others can use it: Is there only one try remaining for the
@@ -406,8 +406,8 @@
     my $tries = $res->tries($part);
     my $maxtries = $res->maxtries($part);
     return $tries && $maxtries && $maxtries > 1 &&
-        $maxtries - $tries == 1 && $res->duedate() &&
-        $res->duedate() > time();
+        $maxtries - $tries == 1 && $res->duedate($part) &&
+        $res->duedate($part) > time();
 }
 
 # This puts a human-readable name on the ENV variable.