[system] / trunk / webwork-modperl / lib / WeBWorK / ContentGenerator / Problem.pm Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# Diff of /trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/Problem.pm

Revision 1494 Revision 1495
210 \$problem->max_attempts, \$problem->num_correct + \$problem->num_incorrect + 1), 210 \$problem->max_attempts, \$problem->num_correct + \$problem->num_incorrect + 1),
211 # attempts=num_correct+num_incorrect+1, as this happens before updating \$problem 211 # attempts=num_correct+num_incorrect+1, as this happens before updating \$problem
213 ); 213 );
214 # more complicated logic for showing check answer button:
215 # checkAnswers button shows up after due date -- once a student can't record anymore
216 # checkAnswers button always shows up when an instructor or TA is acting
217 # as someone else (the \$user and \$effectiveUserName aren't the same).
219 ( \$permissionLevel >= 5 and
222 );
223
214 224
215 # final values for options 225 # final values for options
216 my %will; 226 my %will;
217 foreach (keys %must) { 227 foreach (keys %must) {
218 \$will{\$_} = \$can{\$_} && (\$want{\$_} || \$must{\$_}); 228 \$will{\$_} = \$can{\$_} && (\$want{\$_} || \$must{\$_});
522 # print this if user previewed answers 532 # print this if user previewed answers
523 print \$self->attemptResults(\$pg, 1, 0, 1, 1, 1); 534 print \$self->attemptResults(\$pg, 1, 0, 1, 1, 1);
525 # don't show correct answers 536 # don't show correct answers
526 # show attempt results (correctness) 537 # show attempt results (correctness)
527 # don't show attempt previews 538 # don't show attempt previews