mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Searching in matching questiondbs first
This commit is contained in:
@@ -298,8 +298,8 @@ export function shouldSearchDataFile(
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME: always return true if it gets here?
|
||||
return true
|
||||
logger.DebugLog(`no suitable dbs for ${testUrl}`, 'shouldSearchDataFile', 1)
|
||||
return false
|
||||
}
|
||||
|
||||
export function shouldSaveDataFile(
|
||||
|
@@ -564,7 +564,7 @@ if (!isMainThread) {
|
||||
|
||||
try {
|
||||
qdbs.forEach((qdb) => {
|
||||
if (searchIn === 'all' || searchIn.includes(qdb.index)) {
|
||||
if (searchIn.length === 0 || searchIn.includes(qdb.index)) {
|
||||
const res = doSearch(
|
||||
qdb.data,
|
||||
subjName,
|
||||
|
Reference in New Issue
Block a user