the first filter is ignored.
I think it's because method filter_not just sets self._fitlers and does not do something like self._filters = self._fitlers & QNot(not_filter)
Also the test data to test such case is not good. Actually in file tests/test_document.py test method test_can_find_with_multiple_filters:
It seems that in code as follow:
the first filter is ignored. I think it's because method
filter_not
just sets self._fitlers and does not do something like self._filters = self._fitlers & QNot(not_filter)Also the test data to test such case is not good. Actually in file
tests/test_document.py
test methodtest_can_find_with_multiple_filters
:if we change this:
to this:
test will pass anyway.