WeBWorK Main Forum

Trouble with set definition file .(Cannot hide exam scores until after answer date.)

Trouble with set definition file .(Cannot hide exam scores until after answer date.)

by Christian Seberino -
Number of replies: 3
Everything works great in set definition file below to set up an exam except
for the "hideScore = BeforeAnswerDate" line.  It does NOT hide scores until
after the answer date.  Instead it shows up as "Yes" for whether to show answers. Why?

cs


openDate=11/22/2013 at 01:30 PM
dueDate=12/01/2013 at 11:59 PM
answerDate=12/01/2013 at 11:59 PM
assignmentType = gateway
versionTimeLimit = 7200
capTimeLimit = 0
attemptsPerVersion = 1
timeInterval = 0
versionsPerInterval = 0
problemRandOrder = 0
problemsPerPage = 0
hideScore = BeforeAnswerDate
hideWork = BeforeAnswerDate
problemList=
Library/webwork_custom/Algebra_1/exam_2/3.3_1.pg
Library/webwork_custom/Algebra_1/exam_2/3.3_2.pg
Library/webwork_custom/Algebra_1/exam_2/3.3_3.pg
Library/webwork_custom/Algebra_1/exam_2/3.3_4.pg
Library/webwork_custom/Algebra_1/exam_2/3.3_5.pg
Library/webwork_custom/Algebra_1/exam_2/3.3_6.pg
Library/webwork_custom/Algebra_1/exam_2/3.3_7.pg
Library/webwork_custom/Algebra_1/exam_2/3.3_8.pg
Library/webwork_custom/Algebra_1/exam_2/3.4_1.pg
Library/webwork_custom/Algebra_1/exam_2/3.4_2.pg
Library/webwork_custom/Algebra_1/exam_2/3.4_3.pg
Library/webwork_custom/Algebra_1/exam_2/3.5_1.pg
Library/webwork_custom/Algebra_1/exam_2/3.5_2.pg
Library/webwork_custom/Algebra_1/exam_2/4.1_1.pg
Library/webwork_custom/Algebra_1/exam_2/4.1_2.pg
Library/webwork_custom/Algebra_1/exam_2/4.1_3.pg
Library/webwork_custom/Algebra_1/exam_2/4.1_4.pg
Library/webwork_custom/Algebra_1/exam_2/4.2_1.pg
Library/webwork_custom/Algebra_1/exam_2/4.2_2.pg
Library/webwork_custom/Algebra_1/exam_2/4.3_1.pg
Library/webwork_custom/Algebra_1/exam_2/4.3_2.pg
Library/webwork_custom/Algebra_1/exam_2/4.4_1.pg
Library/webwork_custom/Algebra_1/exam_2/4.4_2.pg
Library/webwork_custom/Algebra_1/exam_2/4.4_3.pg
Library/webwork_custom/Algebra_1/exam_2/4.4_4.pg

In reply to Christian Seberino

Re: Trouble with set definition file .(Cannot hide exam scores until after answer date.)

by Gavin LaRose -
Hi Christian,

I think this may be a bug. I have noticed some sets I created showing up without the correct hideScore setting when creating them from a definition file, but not double checked that it's a problem with the definition file not being imported correctly. In that you're reporting something that sounds similar (and have checked) it's most likely that it's a bug in the import. I'll try to look at this shortly.

Gavin

In reply to Gavin LaRose

Re: Trouble with set definition file .(Cannot hide exam scores until after answer date.)

by Gavin LaRose -
Hi Christian et al.,

So, shortly in this case means "in about two weeks, when the semester has started to wind down." It looks as if the problem is, as expected, in a column describing the set not being set correctly. Not as expected, it turns out to be a different column than the hide_work column. I'm working on getting a fix into the repository. In the meantime, I believe adding the lines

   # this is a default value that we need to have things show up
   #    correctly; it should be the default in the database, really.
                $newSetRecord->hide_score_by_problem('N');

In ProblemSetList.pm, at line 1672, and in ProblemSetList2.pm, at line 1743, fixes the problem. Line numbers are correct for WeBWorK 2.7.

Gavin