--- loncom/homework/inputtags.pm 2002/10/24 19:20:17 1.68 +++ loncom/homework/inputtags.pm 2002/10/29 06:12:32 1.71 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # input definitons # -# $Id: inputtags.pm,v 1.68 2002/10/24 19:20:17 sakharuk Exp $ +# $Id: inputtags.pm,v 1.71 2002/10/29 06:12:32 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -308,7 +308,8 @@ sub decideoutput { sub setgradedata { my ($award,$id,$previously_used) = @_; # if the student already has it correct, don't modify the status - if ($Apache::inputtags::status['-1'] ne 'CAN_ANSWER') { + if ($Apache::inputtags::status['-1'] ne 'CAN_ANSWER' && + $Apache::inputtags::status['-1'] ne 'CANNOT_ANSWER') { $Apache::lonhomework::results{"resource.$id.afterduedate"}=$award; return ''; } elsif ( $Apache::lonhomework::history{"resource.$id.solved"} !~ @@ -431,8 +432,8 @@ sub gradestatus { if ( $maxtries eq 'con_lost' ) { $maxtries = '0'; } if ( $showbutton ) { if ($target eq 'tex') { - if ((not $ENV{'request.role'}=~m/^au\./) and (not $ENV{'request.role'}=~m/^ca\./)) { - $trystr = ' {\small \textit{Tries} '.$tries.'/'.$maxtries.'} '; + if ($ENV{'request.state'} ne "construct") { + $trystr = ' {\small \textit{Tries} '.$tries.'/'.$maxtries.'} \vskip 0 mm '; } } else { $trystr = "Tries $tries/$maxtries";