X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=models%2Fassessment.js;h=de3d2d7bbecb96a64e1ebde50fcfa225fb464986;hb=73609d3bc662cf4c8a21746c5d1ad736ea0eecbd;hp=c7cb0fd7d6fce92d5b84794bbc6c9091617fefe9;hpb=43828378be054cf3604b753e8d9ab24af911188f;p=qomet.git diff --git a/models/assessment.js b/models/assessment.js index c7cb0fd..de3d2d7 100644 --- a/models/assessment.js +++ b/models/assessment.js @@ -11,11 +11,11 @@ const AssessmentModel = * _id: BSON id * cid: course ID * name: varchar - * active: boolean true/false - * mode: secure | exam | open (decreasing security) + * active: boolean + * mode: secure | watch | exam | open (decreasing security) * fixed: bool (questions in fixed order; default: false) * display: "one" or "all" (generally "all" for open questions, but...) - * time: 0, //<=0 means "untimed"; otherwise, time in seconds + * time: 0, global (one vaue) or per question (array of integers) * introduction: "", * coefficient: number, default 1 * questions: array of @@ -26,7 +26,7 @@ const AssessmentModel = * answer: array of integers (for quiz) or html text (for paper); striped in exam mode * active: boolean, is question in current assessment? * points: points for this question (default 1) - * time: 0 (<=0: untimed) + * param: parameter (if applicable) * papers : array of * number: student number * inputs: array of {index,answer[array of integers or html text],startTime}