Skip to content

Commit

Permalink
housenumber-only searches cannot be combined with qualifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
lonvia committed Jan 28, 2024
1 parent 103800a commit f07f853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nominatim/api/search/token_assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def get_assignments(self, query: qmod.QueryStruct) -> Iterator[TokenAssignment]:
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)


Expand Down

0 comments on commit f07f853

Please sign in to comment.