aboutsummaryrefslogtreecommitdiff
path: root/gn3/api/general.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/api/general.py')
-rw-r--r--gn3/api/general.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/api/general.py b/gn3/api/general.py
index e0bfc81..68b128b 100644
--- a/gn3/api/general.py
+++ b/gn3/api/general.py
@@ -7,7 +7,7 @@ from flask import request
from gn3.fs_helpers import extract_uploaded_file
from gn3.commands import run_cmd
-from gn3.db import datasets
+from gn3.db import rdf
general = Blueprint("general", __name__)
@@ -72,4 +72,4 @@ def run_r_qtl(geno_filestr, pheno_filestr):
@general.route("/dataset/<accession_id>")
def dataset_metadata(accession_id):
"""Return info as JSON for dataset with ACCESSION_ID."""
- return jsonify(datasets.dataset_metadata(accession_id))
+ return jsonify(rdf.get_dataset_metadata(accession_id).data)