mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
Merge pull request #3679 from lonvia/output-fixes
Minor fixes for v1 frontend code
This commit is contained in:
@@ -304,7 +304,7 @@ class NominatimAPIAsync:
|
|||||||
else:
|
else:
|
||||||
details.restrict_min_max_rank(4, 4)
|
details.restrict_min_max_rank(4, 4)
|
||||||
|
|
||||||
if 'layers' not in params:
|
if details.layers is None:
|
||||||
details.layers = ntyp.DataLayer.ADDRESS
|
details.layers = ntyp.DataLayer.ADDRESS
|
||||||
if amenity:
|
if amenity:
|
||||||
details.layers |= ntyp.DataLayer.POI
|
details.layers |= ntyp.DataLayer.POI
|
||||||
|
|||||||
@@ -238,7 +238,7 @@ def _dump_searches(searches: List[AbstractSearch], query: QueryStruct,
|
|||||||
if not lk:
|
if not lk:
|
||||||
return ''
|
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:
|
def fmt_cstr(c: Any) -> str:
|
||||||
if not c:
|
if not c:
|
||||||
|
|||||||
Reference in New Issue
Block a user