aboutsummaryrefslogtreecommitdiff
path: root/gn3/auth/authorisation/data
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-04-19 11:31:14 +0300
committerFrederick Muriuki Muriithi2023-04-19 11:31:14 +0300
commit85610fc9670c0496bff045be0e148e3d2b3357d3 (patch)
tree3af78ea10f88ea5fc648b62727dea21db7e30637 /gn3/auth/authorisation/data
parent280f7970f3a63c2afa06f55ad59233260da2e2b9 (diff)
downloadgenenetwork3-85610fc9670c0496bff045be0e148e3d2b3357d3.tar.gz
auth: phenotypes - provide default empty list for selected traits.
Diffstat (limited to 'gn3/auth/authorisation/data')
-rw-r--r--gn3/auth/authorisation/data/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/auth/authorisation/data/views.py b/gn3/auth/authorisation/data/views.py
index 8bfe61c..a14e78b 100644
--- a/gn3/auth/authorisation/data/views.py
+++ b/gn3/auth/authorisation/data/views.py
@@ -152,7 +152,7 @@ def __search_phenotypes__():
redisuri = app.config["REDIS_URI"]
with redis.Redis.from_url(redisuri, decode_responses=True) as redisconn:
job_id = uuid.uuid4()
- selected = __request_key__("selected_traits")
+ selected = __request_key__("selected_traits", [])
command =[
sys.executable, "-m", "scripts.search_phenotypes",
__request_key__("species_name"),