Searching in matching questiondbs first

This commit is contained in:
mrfry 2021-02-10 17:29:17 +01:00
parent 87f9bbd3a3
commit 98f2cc4608
4 changed files with 68 additions and 22 deletions

View file

@ -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(

View file

@ -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,