From ff02f680b7503ded131aac3204ea51909f9dc49c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Cant=C3=B9?= Date: Thu, 9 Jan 2025 09:57:13 +0100 Subject: [PATCH] fix geoapi serializer country --- metadata_catalogue/datasets/geoapi/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/metadata_catalogue/datasets/geoapi/models.py b/metadata_catalogue/datasets/geoapi/models.py index c11cfda..fefe618 100644 --- a/metadata_catalogue/datasets/geoapi/models.py +++ b/metadata_catalogue/datasets/geoapi/models.py @@ -72,16 +72,16 @@ def get_config(self, url=""): "position": safe_get(info.contact, "position"), "address": safe_get(info.contact, "delivery_point"), "city": safe_get(info.contact, "city"), - "stateorprovince": safe_get(info.contact, "country"), + "stateorprovince": str(safe_get(info.contact, "country")), "postalcode": safe_get(info.contact, "postal_code"), "country": str(safe_get(info.contact, "country")), - "phone": safe_get(info.contact, "phone"), - "fax": safe_get(info.contact, "phone"), + "phone": str(safe_get(info.contact, "phone")), + "fax": "", "email": safe_get(info.contact, "email"), "url": "", "hours": info.contact_hours or "", "instructions": info.contact_instructions or "", - "role": "pointOfContact", + "role": "owner", }, }, "resources": resources,