aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/trait.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-10-20 06:08:38 +0300
committerFrederick Muriuki Muriithi2022-10-20 06:08:38 +0300
commit6457f7e3516a04e238eeb061db358eea29cd2332 (patch)
treefa250e353989decf9d12b32eac7e0186c1472fc8 /wqflask/base/trait.py
parent1baf67bb1c1833875271916fb66ad71f125acd85 (diff)
downloadgenenetwork2-6457f7e3516a04e238eeb061db358eea29cd2332.tar.gz
Cleanup: Remove unused code
* Commit 49580eb9cd47bb2ce15fd44be11bb9580d85efef removed the use of the gn-proxy, but left some code that was used expressly for use with the gn-proxy. This commit removes that code.
Diffstat (limited to 'wqflask/base/trait.py')
-rw-r--r--wqflask/base/trait.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index 6e835b45..1514bca2 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -387,13 +387,6 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False):
if not dataset:
raise ValueError("Dataset doesn't exist")
- resource_id = get_resource_id(dataset, trait.name)
- if dataset.type == 'Publish':
- the_url = GN_PROXY_URL + "run-action?resource={}&user={}&branch=data&action=view".format(
- resource_id, g.user_session.user_id)
- else:
- the_url = GN_PROXY_URL + "run-action?resource={}&user={}&branch=data&action=view&trait={}".format(
- resource_id, g.user_session.user_id, trait.name)
with database_connection() as conn, conn.cursor() as cursor:
trait_info = ()
if dataset.type == 'Publish':