mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Fixed added questions beeing empty arrays, removed some consolelogs
This commit is contained in:
parent
6c781eba97
commit
661ceb1688
4 changed files with 7 additions and 14 deletions
src/utils
|
@ -124,8 +124,6 @@ function answerPreProcessor(value) {
|
|||
function removeAnswerLetters(value) {
|
||||
assert(value)
|
||||
|
||||
console.log(value)
|
||||
|
||||
let val = value.split('. ')
|
||||
if (val[0].length < 2 && val.length > 1) {
|
||||
val.shift()
|
||||
|
@ -382,7 +380,6 @@ function searchData(data, question, subjName, questionData) {
|
|||
logger.DebugLog('No subject name as param!', 'qdb search', 1)
|
||||
}
|
||||
question = simplifyQuestion(question)
|
||||
console.log('RESULT: ' + question)
|
||||
|
||||
const worker = new Worker(searchDataWorkerFile, {
|
||||
workerData: { data, subjName, question, questionData },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue