aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gn3/api/metadata.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py
index 096702e..eb42be4 100644
--- a/gn3/api/metadata.py
+++ b/gn3/api/metadata.py
@@ -203,7 +203,8 @@ CONSTRUCT {
return __result | retrieve_dataset_metadata(
(Path(
current_app.config.get("DATA_DIR")
- ) / "gn-docs/general/datasets" / __result.get("id", "")).as_posix()
+ ) / "gn-docs/general/datasets" /
+ Path(__result.get("id", "")).stem).as_posix()
)
except (RemoteDisconnected, URLError):
return jsonify({})