fix: has search criteria had twisted logic

This commit is contained in:
2025-09-06 14:08:30 +02:00
parent a5754b2633
commit 0df36df9d8
2 changed files with 3 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ class AdoptionNoticeSearch:
Returns true if there are any restrictions on which adoption notices are searched.
If all adoption notices fit the search, return True
"""
return self.sex is None and self.area_search is None
return self.sex is not None or self.area_search is not None
def adoption_notice_fits_search(self, adoption_notice: AdoptionNotice):
# Make sure sex is set and sex is not set to all (then it can be disregarded)