From 12b72d28b28ede3e891afa2e679570a27110a094 Mon Sep 17 00:00:00 2001
From: zsloan
Date: Tue, 19 Oct 2021 05:15:07 +0000
Subject: Fixed bug where the record ID for ProbeSet traits wasn't being pulled
 from the correct position in the query results

---
 wqflask/wqflask/search_results.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'wqflask')

diff --git a/wqflask/wqflask/search_results.py b/wqflask/wqflask/search_results.py
index 61970e7e..f8ecd178 100644
--- a/wqflask/wqflask/search_results.py
+++ b/wqflask/wqflask/search_results.py
@@ -112,7 +112,7 @@ class SearchResultPage:
 
             trait_dict = {}
             trait_dict['index'] = index + 1
-            trait_dict['name'] = result[0]
+            trait_dict['name'] = result[2]
 
             #ZS: Check permissions on a trait-by-trait basis for phenotype traits
             if self.dataset.type == "Publish":
-- 
cgit v1.2.3