Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
program-service
Commits
8c9c81a8
Commit
8c9c81a8
authored
3 years ago
by
snehar-nd
Browse files
Options
Download
Patches
Plain Diff
CSV- correct answer in mcq "SB-29415"
parent
cd1caef0
release-5.1.0
release-4.8.0
release-4.9.0
release-5.1.0_RC1
release-4.9.0_RC1
release-4.8.0_RC3
release-4.8.0_RC2
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/service/print/csv.js
+8
-1
src/service/print/csv.js
with
8 additions
and
1 deletion
+8
-1
src/service/print/csv.js
+
8
−
1
View file @
8c9c81a8
...
...
@@ -249,6 +249,12 @@ async function getStack(htmlString, questionCounter) {
return
stack
;
}
const
ansIndex
=
(
arr
)
=>
{
for
(
let
index
=
0
;
index
<
arr
.
length
;
index
++
)
{
const
element
=
arr
[
index
];
if
(
element
.
answer
===
true
)
return
index
+
1
}
}
async
function
renderMCQ
(
question
,
questionCounter
,
...
...
@@ -368,6 +374,7 @@ async function renderMCQ(
}
}
}
let
answer
=
await
ansIndex
(
question
.
editorState
.
options
)
let
data
=
{
Class
:
grade
,
Subject
:
subject
,
...
...
@@ -377,7 +384,7 @@ async function renderMCQ(
Option2
:
questionOptions
.
length
!==
0
?
questionOptions
[
1
][
0
]
:
""
,
Option3
:
questionOptions
.
length
!==
0
?
questionOptions
[
2
][
0
]
:
""
,
Option4
:
questionOptions
.
length
!==
0
?
questionOptions
[
3
][
0
]
:
""
,
"
CorrectAnswer(1/2/3/4)
"
:
question
.
answer
,
"
CorrectAnswer(1/2/3/4)
"
:
answer
,
Competencies
:
learningOutcome
,
Skills
:
blooms
,
QuestionImageUrl
:
queurl
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets