Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Jul 10, 2024
1 parent 1595390 commit 89afea0
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/design/plone/contenttypes/restapi/services/types/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,25 +169,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"]:
Expand Down

0 comments on commit 89afea0

Please sign in to comment.