[LON-CAPA-cvs] cvs: loncom /homework response.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 07 May 2004 17:20:19 -0000


albertel		Fri May  7 13:20:19 2004 EDT

  Modified files:              
    /loncom/homework	response.pm 
  Log:
  - was comparing to submissiongrading too, which is silly
  
  
Index: loncom/homework/response.pm
diff -u loncom/homework/response.pm:1.97 loncom/homework/response.pm:1.98
--- loncom/homework/response.pm:1.97	Wed Mar 31 00:23:59 2004
+++ loncom/homework/response.pm	Fri May  7 13:20:19 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # various response type definitons response definition
 #
-# $Id: response.pm,v 1.97 2004/03/31 05:23:59 albertel Exp $
+# $Id: response.pm,v 1.98 2004/05/07 17:20:19 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -199,7 +199,7 @@
     my %previous;
     $previous{'used'} = 0;
     foreach my $key (sort(keys(%Apache::lonhomework::history))) {
-	if ($key =~ /resource\.$partid\.$id\.submission/) {
+	if ($key =~ /resource\.$partid\.$id\.submission$/) {
 	    &Apache::lonxml::debug("Trying $key");
 	    my $pastresponse=$Apache::lonhomework::history{$key};
 	    if ($pastresponse eq $curresponse) {