Skip to content

Commit a8e3c62

Browse files
committed
Simplify temp fix
1 parent e1009fa commit a8e3c62

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

resource_catalogue_fastapi/__init__.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,10 @@ def upload_nested_files(
154154
update_stac_order_status(json_body, None, order_status)
155155
# Temporary fix for EODHP-1162
156156
for link in json_body.get("links", []):
157-
if "api/catalogue/stac/v1/supported-datasets" in link.get("href"):
158-
link["href"] = link["href"].replace(
159-
"api/catalogue/stac/v1/supported-datasets",
160-
"api/catalogue/stac/v1/catalogs/supported-datasets",
161-
)
157+
link["href"] = link["href"].replace(
158+
"api/catalogue/stac/v1/supported-datasets",
159+
"api/catalogue/stac/v1/catalogs/supported-datasets",
160+
)
162161
body = json.dumps(json_body)
163162
ordered_item_key = workspace_key
164163
except Exception as e:

0 commit comments

Comments
 (0)