Added uncached compare option (hardcoded, commented)

This commit is contained in:
mrfry 2021-04-14 14:14:41 +02:00
parent 575befb491
commit e2c15f8445
2 changed files with 13 additions and 1 deletions

View file

@ -290,10 +290,22 @@ function compareData(q1: Question, q2: Question) {
function compareQuestion(q1: Question, q2: Question) { function compareQuestion(q1: Question, q2: Question) {
return compareString(q1.Q, q1.cache.Q, q2.Q, q2.cache.Q) return compareString(q1.Q, q1.cache.Q, q2.Q, q2.cache.Q)
// return compareString(
// q1.Q,
// q1.Q ? q1.Q.split(' ') : [],
// q2.Q,
// q2.Q ? q2.Q.split(' ') : []
// )
} }
function compareAnswer(q1: Question, q2: Question) { function compareAnswer(q1: Question, q2: Question) {
return compareString(q1.A, q1.cache.A, q2.A, q2.cache.A) return compareString(q1.A, q1.cache.A, q2.A, q2.cache.A)
// return compareString(
// q1.A,
// q1.A ? q1.A.split(' ') : [],
// q2.A,
// q2.A ? q2.A.split(' ') : []
// )
} }
function compareQuestionObj( function compareQuestionObj(

@ -1 +1 @@
Subproject commit 4f9a41dea854de5d0e14a6acb06d2c6accd5cebf Subproject commit 1b3c07fce243220b629820f9e943fb449f8291c8