From 69c1fa0f2a3e4789bc59e648d4caf69d6defe028 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 13 Feb 2024 18:52:57 +0300 Subject: Use correct path for dataset metadata files. * gn3/api/metadata.py (datasets): Use "gn-docs/general/datasets". Signed-off-by: Munyoki Kilyungi --- gn3/api/metadata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gn3/api') diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py index e4099ba..096702e 100644 --- a/gn3/api/metadata.py +++ b/gn3/api/metadata.py @@ -201,9 +201,9 @@ CONSTRUCT { current_app.config.get("SPARQL_ENDPOINT") ) return __result | retrieve_dataset_metadata( - Path( + (Path( current_app.config.get("DATA_DIR") - ).joinpath(__result.get("id", "")).as_posix() + ) / "gn-docs/general/datasets" / __result.get("id", "")).as_posix() ) except (RemoteDisconnected, URLError): return jsonify({}) -- cgit v1.2.3