From 7731a3453fc007261c80f5cd7d91f60e26785be4 Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 18 Feb 2021 18:32:06 +0000 Subject: Changed gsearch to be able to account for permissions either being a list or a string --- wqflask/wqflask/gsearch.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wqflask/wqflask/gsearch.py b/wqflask/wqflask/gsearch.py index 2b8d4bc1..46500df8 100644 --- a/wqflask/wqflask/gsearch.py +++ b/wqflask/wqflask/gsearch.py @@ -108,8 +108,12 @@ class GSearch(object): dataset_to_permissions[dataset_ob.id] = permissions else: pemissions = dataset_to_permissions[dataset_ob.id] - if "view" not in permissions['data']: - continue + if type(permissions['data']) is list: + if "view" not in permissions['data']: + continue + else: + if permissions['data'] == 'no-access': + continue max_lrs_text = "N/A" if this_trait['locus_chr'] != None and this_trait['locus_mb'] != None: -- cgit v1.2.3