diff options
author | zsloan | 2021-02-18 18:32:06 +0000 |
---|---|---|
committer | zsloan | 2021-02-18 18:32:06 +0000 |
commit | 7731a3453fc007261c80f5cd7d91f60e26785be4 (patch) | |
tree | 23850ef14d6574456965210348308e309ee0c6ea /wqflask | |
parent | b5c07c6a65dc8f342a5c5d65349aa5dfbf83862d (diff) | |
download | genenetwork2-7731a3453fc007261c80f5cd7d91f60e26785be4.tar.gz |
Changed gsearch to be able to account for permissions either being a list or a string
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/gsearch.py | 8 |
1 files 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: |