diff --git a/CHANGES.rst b/CHANGES.rst index 29ad399..39ed212 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,8 +5,8 @@ Changelog 1.0.3 (unreleased) ------------------ -- Nothing changed yet. - +- geolocation metadata return None if not set and not an empty dict. + [cekk] 1.0.2 (2024-11-20) ------------------ diff --git a/src/iosanita/contenttypes/indexers/common.py b/src/iosanita/contenttypes/indexers/common.py index 4cb4bdd..ec57916 100644 --- a/src/iosanita/contenttypes/indexers/common.py +++ b/src/iosanita/contenttypes/indexers/common.py @@ -7,7 +7,7 @@ def get_geolocation_data(context): geolocation = getattr(context.aq_base, "geolocation", None) if not geolocation: - return {} + return None return { "latitude": geolocation.latitude, "longitude": geolocation.longitude,