From b14a2100207730d6350c5007177e0192a4508f38 Mon Sep 17 00:00:00 2001 From: Luca Bellenghi Date: Fri, 3 May 2024 14:27:38 +0200 Subject: [PATCH] black --- .../restapi/services/types/get.py | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/design/plone/contenttypes/restapi/services/types/get.py b/src/design/plone/contenttypes/restapi/services/types/get.py index 206dd81b..c18ce171 100644 --- a/src/design/plone/contenttypes/restapi/services/types/get.py +++ b/src/design/plone/contenttypes/restapi/services/types/get.py @@ -185,25 +185,25 @@ def customize_venue_schema(self, result): } if "city" in result["properties"]: if not result["properties"]["city"].get("default", ""): - result["properties"]["city"][ - "default" - ] = api.portal.get_registry_record( - "city", interface=IGeolocationDefaults + result["properties"]["city"]["default"] = ( + api.portal.get_registry_record( + "city", interface=IGeolocationDefaults + ) ) if "zip_code" in result["properties"]: if not result["properties"]["zip_code"].get("default", ""): - result["properties"]["zip_code"][ - "default" - ] = api.portal.get_registry_record( - "zip_code", interface=IGeolocationDefaults + result["properties"]["zip_code"]["default"] = ( + api.portal.get_registry_record( + "zip_code", interface=IGeolocationDefaults + ) ) if "street" in result["properties"]: if not result["properties"]["street"].get("default", ""): - result["properties"]["street"][ - "default" - ] = api.portal.get_registry_record( - "street", interface=IGeolocationDefaults + result["properties"]["street"]["default"] = ( + api.portal.get_registry_record( + "street", interface=IGeolocationDefaults + ) ) if "geolocation" in result["properties"]: