From b6fc5c634fc06b9961ed49be94501091932ea28f Mon Sep 17 00:00:00 2001 From: moanos Date: Wed, 1 Jan 2025 17:21:09 +0100 Subject: [PATCH] feat: add debugging messages --- src/fellchensammlung/tools/search.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fellchensammlung/tools/search.py b/src/fellchensammlung/tools/search.py index ba7dab7..5afe272 100644 --- a/src/fellchensammlung/tools/search.py +++ b/src/fellchensammlung/tools/search.py @@ -69,11 +69,13 @@ class Search: if self.sex is not None and self.sex != SexChoicesWithAll.ALL: # AN does not fit search if search sex is not in available sexes of this AN if not self.sex in adoption_notice.sexes: + logging.debug("Sex mismatch") return False # make sure it's an area search and the place is found to check location if self.area_search and not self.place_not_found: # If adoption notice is in not in search distance, return false if not adoption_notice.in_distance(self.location.position, self.max_distance): + logging.debug("Area mismatch") return False return True