diff options
author | Frederick Muriuki Muriithi | 2022-10-14 06:47:50 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-10-14 06:47:50 +0300 |
commit | 5439455caa93ad172afd139999fbe72e8eacc5a1 (patch) | |
tree | e6594ce7dffad35dd7ccb16d413bdd0993860bf0 | |
parent | c4a82fcc60206900b4007fa6198ca6f858850bf4 (diff) | |
download | genenetwork2-5439455caa93ad172afd139999fbe72e8eacc5a1.tar.gz |
Use f-strings to do string interpolation
-rw-r--r-- | wqflask/wqflask/views.py | 3 |
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'] != "": |