X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/261e0cfd5a084dc5de333eda1093a9e7635c4859..201b4689afaee3acfddd1fc7fe829fafc70667d6:/nominatim/api/v1/format.py?ds=inline diff --git a/nominatim/api/v1/format.py b/nominatim/api/v1/format.py index 1e37b4c7..53156fdd 100644 --- a/nominatim/api/v1/format.py +++ b/nominatim/api/v1/format.py @@ -141,7 +141,7 @@ def _format_details_json(result: napi.DetailedResult, options: Mapping[str, Any] if result.address_rows is not None: _add_address_rows(out, 'address', result.address_rows, locales) - if result.linked_rows is not None: + if result.linked_rows: _add_address_rows(out, 'linked_places', result.linked_rows, locales) if result.name_keywords is not None or result.address_keywords is not None: