Skip to content

Commit ef71158

Browse files
committed
fix: stringify uuid right away because of pyarrow
1 parent 53ba4e0 commit ef71158

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/eodash_catalog/endpoints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def handle_STAC_based_endpoint(
176176
catalog, collection_config["Name"], collection_config, catalog_config, endpoint_config
177177
)
178178
for location in collection_config["Locations"]:
179-
identifier = location.get("Identifier", uuid.uuid4())
179+
identifier = location.get("Identifier", str(uuid.uuid4()))
180180
collection = process_STACAPI_Endpoint(
181181
catalog_config=catalog_config,
182182
endpoint_config=endpoint_config,
@@ -1532,7 +1532,7 @@ def handle_vector_tile_source(
15321532
extra_fields_link = {}
15331533
add_authentication(item, time_entry["Url"], extra_fields_link)
15341534
# add mapbox vector tile link
1535-
identifier = uuid.uuid4()
1535+
identifier = str(uuid.uuid4())
15361536
extra_fields_link["key"] = identifier
15371537
link = Link(
15381538
rel="vector-tile",

src/eodash_catalog/stac_handling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def create_web_map_link(
151151
if layer_config.get("dimensions"):
152152
extra_fields["wmts:dimensions"] = layer_config["dimensions"]
153153
case "vector-tile":
154-
identifier = uuid.uuid4()
154+
identifier = str(uuid.uuid4())
155155
extra_fields["key"] = identifier
156156
media_type = "application/vnd.mapbox-vector-tile"
157157
if ep_st := layer_config.get("Style"):

0 commit comments

Comments
 (0)