mirror of https://github.com/kiwix/libkiwix.git
Library::filter() doesn't create empty books
This changes how the `XmlLibraryTest.removeBookByIdUpdatesTheSearchDB` unit-test fails.
This commit is contained in:
parent
49940a30d0
commit
aaaa5a637e
|
@ -331,7 +331,7 @@ Library::BookIdCollection Library::filter(const Filter& filter)
|
||||||
{
|
{
|
||||||
BookIdCollection result;
|
BookIdCollection result;
|
||||||
for(auto id : getBooksByTitleOrDescription(filter)) {
|
for(auto id : getBooksByTitleOrDescription(filter)) {
|
||||||
if(filter.acceptByNonQueryCriteria(m_books[id])) {
|
if(filter.acceptByNonQueryCriteria(m_books.at(id))) {
|
||||||
result.push_back(id);
|
result.push_back(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue