aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-02-13 18:52:57 +0300
committerMunyoki Kilyungi2024-02-13 18:52:57 +0300
commit69c1fa0f2a3e4789bc59e648d4caf69d6defe028 (patch)
tree79a4e5c91adad379014968f66f652553c570bb3b /gn3
parente631f74319836d97bfc5da91dc3a7d3b5561154a (diff)
downloadgenenetwork3-69c1fa0f2a3e4789bc59e648d4caf69d6defe028.tar.gz
Use correct path for dataset metadata files.
* gn3/api/metadata.py (datasets): Use "gn-docs/general/datasets". Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3')
-rw-r--r--gn3/api/metadata.py4
1 files changed, 2 insertions, 2 deletions
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({})