Поправлен баг

This commit is contained in:
Book Pauk
2022-10-27 17:24:47 +07:00
parent ecb372ec70
commit 8a6852c4ae

View File

@@ -413,7 +413,7 @@ class DbSearcher {
`; `;
filter += ` filter += `
const genres = book.genre.split(','); const genres = book.genre.split(',');
let found = false; found = false;
for (const g of genres) { for (const g of genres) {
if (checkGenre(g)) { if (checkGenre(g)) {
found = true; found = true;
@@ -452,7 +452,7 @@ class DbSearcher {
filter += ` filter += `
const author = splitAuthor(book.author); const author = splitAuthor(book.author);
let found = false; found = false;
for (const a of author) { for (const a of author) {
if (checkAuthor(a)) { if (checkAuthor(a)) {
found = true; found = true;
@@ -474,6 +474,7 @@ class DbSearcher {
${closures} ${closures}
const filterBook = (book) => { const filterBook = (book) => {
let found = false;
${filter} ${filter}
return true; return true;
}; };