Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-bellenghi committed May 3, 2024
1 parent a8f2329 commit b14a210
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 @@ -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"]:
Expand Down

0 comments on commit b14a210

Please sign in to comment.