Commit d107ab3a by Иван Кубота

update 1

parent 4f3a860c
Pipeline #568 failed with stage
...@@ -65,11 +65,11 @@ const standardGenerator = function(random) { ...@@ -65,11 +65,11 @@ const standardGenerator = function(random) {
q.answers.forEach( q.answers.forEach(
a => a =>
log.push((a.correct?'+':' ')+` > ${a.title}`)); log.push((a.correct?'+':' ')+` > ${a.title}`));
debugger
return { return {
type: q.multiple ? 'checkbox': 'radio', type: q.multiple ? 'checkbox': 'radio',
categoryId: q.category_id, categoryId: q.category_id,
productId: q.qID, productId: q.cardInfoID,
question: textFormat(q.title), question: textFormat(q.title),
answers: shuffle(q.answers.map(a => answers: shuffle(q.answers.map(a =>
a.correct ? a.correct ?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment