From 7464ce21b5d2577d35e4df1814e57b874ee95590 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 4 Feb 2020 16:14:53 -0600 Subject: Fixed issue where you couldn't download global search table results --- wqflask/wqflask/gsearch.py | 25 +++++++++++++++++++++++++ wqflask/wqflask/templates/gsearch_gene.html | 14 ++++++++++++++ wqflask/wqflask/templates/gsearch_pheno.html | 11 +++++++++++ 3 files changed, 50 insertions(+) (limited to 'wqflask') diff --git a/wqflask/wqflask/gsearch.py b/wqflask/wqflask/gsearch.py index 53e5f2b7..9e06abfe 100644 --- a/wqflask/wqflask/gsearch.py +++ b/wqflask/wqflask/gsearch.py @@ -104,6 +104,20 @@ class GSearch(object): self.trait_count = len(trait_list) self.trait_list = json.dumps(trait_list) + self.header_fields = ['Index', + 'Record', + 'Species', + 'Group', + 'Tissue', + 'Dataset', + 'Symbol', + 'Description', + 'Location', + 'Mean', + 'Max LRS', + 'Max LRS Location', + 'Additive Effect'] + elif self.type == "phenotype": sql = """ SELECT @@ -194,3 +208,14 @@ class GSearch(object): self.trait_count = len(trait_list) self.trait_list = json.dumps(trait_list) + + self.header_fields = ['Index', + 'Species', + 'Group', + 'Record', + 'Description', + 'Authors', + 'Year', + 'Max LRS', + 'Max LRS Location', + 'Additive Effect'] diff --git a/wqflask/wqflask/templates/gsearch_gene.html b/wqflask/wqflask/templates/gsearch_gene.html index 85127e99..2d5d303c 100644 --- a/wqflask/wqflask/templates/gsearch_gene.html +++ b/wqflask/wqflask/templates/gsearch_gene.html @@ -24,6 +24,7 @@