housenumber-only searches cannot be combined with qualifiers

This commit is contained in:
Sarah Hoffmann 2024-01-28 18:09:48 +01:00
parent 103800a732
commit f07f8530a8

View File

@ -390,7 +390,7 @@ class _TokenSequence:
yield from self._get_assignments_address_backward(base, query)
# variant for special housenumber searches
if base.housenumber:
if base.housenumber and not base.qualifier:
yield dataclasses.replace(base, penalty=self.penalty)