aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-10-14 06:47:50 +0300
committerFrederick Muriuki Muriithi2022-10-14 06:47:50 +0300
commit5439455caa93ad172afd139999fbe72e8eacc5a1 (patch)
treee6594ce7dffad35dd7ccb16d413bdd0993860bf0
parentc4a82fcc60206900b4007fa6198ca6f858850bf4 (diff)
downloadgenenetwork2-5439455caa93ad172afd139999fbe72e8eacc5a1.tar.gz
Use f-strings to do string interpolation
-rw-r--r--wqflask/wqflask/views.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index 6802d76e..5465676c 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -617,8 +617,7 @@ def loading_page():
dataset = create_dataset(start_vars['dataset'])
start_vars['trait_name'] = start_vars['trait_id']
if dataset.type == "Publish":
- start_vars['trait_name'] = dataset.group.code + \
- "_" + start_vars['trait_name']
+ start_vars['trait_name'] = f"{dataset.group.code}_{start_vars['trait_name']}"
samples = dataset.group.samplelist
if 'genofile' in start_vars:
if start_vars['genofile'] != "":