mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Commented existed possible answers checking
This commit is contained in:
parent
faefca9b55
commit
7e70aa6c8e
1 changed files with 15 additions and 14 deletions
|
@ -1012,23 +1012,24 @@ function GetApp(): ModuleType {
|
||||||
|
|
||||||
const savedQuestions = utils.ReadJSON(savedSubjQuestionsFilePath)
|
const savedQuestions = utils.ReadJSON(savedSubjQuestionsFilePath)
|
||||||
|
|
||||||
|
const testExists = false
|
||||||
// TODO: do this on another thread?
|
// TODO: do this on another thread?
|
||||||
const testExists = savedQuestions.some((savedQuestion) => {
|
// const testExists = savedQuestions.some((savedQuestion) => {
|
||||||
const data = utils.ReadJSON(`${subjPath}/${savedQuestion.fname}`)
|
// const data = utils.ReadJSON(`${subjPath}/${savedQuestion.fname}`)
|
||||||
|
|
||||||
return data.questions.some((dQuestion) => {
|
// return data.questions.some((dQuestion) => {
|
||||||
return questions.some((question) => {
|
// return questions.some((question) => {
|
||||||
const percent = compareQuestionObj(
|
// const percent = compareQuestionObj(
|
||||||
createQuestion(question),
|
// createQuestion(question),
|
||||||
'',
|
// '',
|
||||||
createQuestion(dQuestion),
|
// createQuestion(dQuestion),
|
||||||
''
|
// ''
|
||||||
)
|
// )
|
||||||
|
|
||||||
return percent.avg === 100
|
// return percent.avg === 100
|
||||||
})
|
// })
|
||||||
})
|
// })
|
||||||
})
|
// })
|
||||||
|
|
||||||
if (testExists) {
|
if (testExists) {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue