aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2023-01-19 20:19:57 +0000
committerzsloan2023-01-19 20:19:57 +0000
commit63aff5ca22cfb5caaa38ac1d737afa48fc8dbf02 (patch)
treecc205e63872711afe3509b73d78d8f4975b04c1a /wqflask
parentb1177ae6e48410ec4919d27577dab960a266b2dd (diff)
downloadgenenetwork2-63aff5ca22cfb5caaa38ac1d737afa48fc8dbf02.tar.gz
Replace angle brackets in trait descriptions for correlation results, since previously it wasn't showing some e-mail addresses (in brackets)
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/correlation/show_corr_results.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/correlation/show_corr_results.py b/wqflask/wqflask/correlation/show_corr_results.py
index 201c68a3..825aac70 100644
--- a/wqflask/wqflask/correlation/show_corr_results.py
+++ b/wqflask/wqflask/correlation/show_corr_results.py
@@ -203,7 +203,7 @@ def populate_table(dataset_metadata, target_dataset, this_dataset, corr_results,
results_dict['mean'] = "N/A"
results_dict['additive'] = "N/A"
if target_trait['description'].strip():
- results_dict['description'] = target_trait['description'].strip()
+ results_dict['description'] = target_trait['description'].strip().replace("<", "&lt;").replace(">", "&gt;")
if target_trait['mean']:
results_dict['mean'] = f"{float(target_trait['mean']):.3f}"
try:
@@ -237,7 +237,7 @@ def populate_table(dataset_metadata, target_dataset, this_dataset, corr_results,
results_dict['abbreviation'] = target_trait['abbreviation']
if target_trait["description"].strip():
- results_dict['description'] = target_trait['description'].strip()
+ results_dict['description'] = target_trait['description'].strip().replace("<", "&lt;").replace(">", "&gt;")
if target_trait["mean"]:
results_dict['mean'] = f"{float(target_trait['mean']):.3f}"