From 781b7b60eed1d180502b9882b334782d9eb7904f Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Sun, 12 Nov 2023 14:31:59 +0200 Subject: [PATCH] schema student answer --- .../schema/NumericalAnswerContainerNode.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wax-questions-service/src/NumericalAnswerService/schema/NumericalAnswerContainerNode.js b/wax-questions-service/src/NumericalAnswerService/schema/NumericalAnswerContainerNode.js index 244673085..0ba378786 100644 --- a/wax-questions-service/src/NumericalAnswerService/schema/NumericalAnswerContainerNode.js +++ b/wax-questions-service/src/NumericalAnswerService/schema/NumericalAnswerContainerNode.js @@ -5,8 +5,11 @@ const NumericalAnswerContainerNode = { feedback: { default: '' }, answerType: { default: '' }, answersExact: { default: [] }, + answerExact: { default: '' }, answersRange: { default: [] }, + answerRange: { default: '' }, answersPrecise: { default: [] }, + answerPrecise: { default: '' }, }, group: 'block questions', isolating: true, @@ -17,8 +20,11 @@ const NumericalAnswerContainerNode = { getAttrs(dom) { return { answersExact: JSON.parse(dom.getAttribute('answersExact')), + answerExact: dom.getAttribute('answerExact'), answersRange: JSON.parse(dom.getAttribute('answersRange')), + answerRange: dom.getAttribute('answerRange'), answersPrecise: JSON.parse(dom.getAttribute('answersPrecise')), + answerPrecise: dom.getAttribute('answerPrecise'), id: dom.getAttribute('id'), class: dom.getAttribute('class'), feedback: dom.getAttribute('feedback'), @@ -33,8 +39,11 @@ const NumericalAnswerContainerNode = { { answerType: node.attrs.answerType, answersExact: JSON.stringify(node.attrs.answersExact), + answerExact: node.attrs.answerExact, answersRange: JSON.stringify(node.attrs.answersRange), + answerRange: node.attrs.answerRange, answersPrecise: JSON.stringify(node.attrs.answersPrecise), + answerPrecise: node.attrs.answerPrecise, id: node.attrs.id, class: node.attrs.class, feedback: node.attrs.feedback, -- GitLab