From 6457f7e3516a04e238eeb061db358eea29cd2332 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 20 Oct 2022 06:08:38 +0300 Subject: 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. --- wqflask/base/trait.py | 7 ------- 1 file changed, 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': -- cgit v1.2.3