From 000ceb019a1e214c5641f6d1a8e07ea6654560bb Mon Sep 17 00:00:00 2001 From: Cresson Remi <remi.cresson@irstea.fr> Date: Thu, 12 Dec 2024 11:59:43 +0100 Subject: [PATCH] Update file stac.py --- theia_dumper/stac.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theia_dumper/stac.py b/theia_dumper/stac.py index b882572..30099af 100644 --- a/theia_dumper/stac.py +++ b/theia_dumper/stac.py @@ -47,7 +47,7 @@ def post_or_put(url: str, data: dict): if resp.status_code == 409: # Exists, so update resp = sess.put( - url if data["type"] == "Collection" else url + f"/{data['id']}", + f"{url}/{data['id']}", json=data, headers=headers ) -- GitLab