mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Question compare match is minimum, instead of average
This commit is contained in:
@@ -313,15 +313,15 @@ function compareQuestionObj(
|
||||
let avg = -1
|
||||
if (q2.A) {
|
||||
if (dMatch === -1) {
|
||||
avg = (qMatch + aMatch) / 2
|
||||
avg = Math.min(qMatch, aMatch)
|
||||
} else {
|
||||
avg = (qMatch + aMatch + dMatch) / 3
|
||||
avg = Math.min(qMatch, aMatch, dMatch)
|
||||
}
|
||||
} else {
|
||||
if (dMatch === -1) {
|
||||
avg = qMatch
|
||||
} else {
|
||||
avg = (qMatch + dMatch) / 2
|
||||
avg = Math.min(qMatch, dMatch)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user