Merge pull request #3679 from lonvia/output-fixes

Minor fixes for v1 frontend code
This commit is contained in:
Sarah Hoffmann
2025-03-19 21:56:28 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -304,7 +304,7 @@ class NominatimAPIAsync:
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

View File

@@ -238,7 +238,7 @@ def _dump_searches(searches: List[AbstractSearch], query: QueryStruct,
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: