Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fixes for v1 frontend code #3679

Merged
merged 2 commits into from
Mar 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/nominatim_api/core.py
Original file line number Diff line number Diff line change
@@ -304,7 +304,7 @@ async def search_address(self, amenity: Optional[str] = None,
else:
details.restrict_min_max_rank(4, 4)

if 'layers' not in params:
if details.layers is None:
details.layers = ntyp.DataLayer.ADDRESS
if amenity:
details.layers |= ntyp.DataLayer.POI
2 changes: 1 addition & 1 deletion src/nominatim_api/search/geocoder.py
Original file line number Diff line number Diff line change
@@ -238,7 +238,7 @@ def fmt_lookup(lk: Any) -> str:
if not lk:
return ''

return f"{lk.lookup_type}({lk.column}{tk(lk.tokens)})"
return f"{lk.lookup_type.__name__}({lk.column}{tk(lk.tokens)})"

def fmt_cstr(c: Any) -> str:
if not c: