From 85610fc9670c0496bff045be0e148e3d2b3357d3 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 19 Apr 2023 11:31:14 +0300 Subject: auth: phenotypes - provide default empty list for selected traits. --- gn3/auth/authorisation/data/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"), -- cgit v1.2.3