aboutsummaryrefslogtreecommitdiff
path: root/gn3/settings.py
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-03-01 15:48:15 +0300
committerBonfaceKilz2023-03-01 22:03:39 +0300
commit32c144cdf41d2f109901d34930296f34fa51323e (patch)
tree09468c989fbef260f95fc0ede1f313756390d280 /gn3/settings.py
parente32dacc9648908a73855d99e7681cb4d7aa4f98e (diff)
downloadgenenetwork3-32c144cdf41d2f109901d34930296f34fa51323e.tar.gz
Fetch sampledata
* gn3/api/sampledata.py (get_sampledata): New end-point. * gn3/app.py: Register above end-point. * gn3/settings.py: Add new conf variable for LMDB. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/settings.py')
-rw-r--r--gn3/settings.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gn3/settings.py b/gn3/settings.py
index 5fec562..1de4d27 100644
--- a/gn3/settings.py
+++ b/gn3/settings.py
@@ -15,6 +15,9 @@ RQTL_WRAPPER = "rqtl_wrapper.R"
# SPARQL endpoint
SPARQL_ENDPOINT = "http://localhost:8891/sparql"
+# LMDB path
+LMDB_PATH = os.environ.get(
+ "LMDB_PATH", f"{os.environ.get('HOME')}/tmp/dataset")
# SQL confs
SQL_URI = os.environ.get(