From 5439455caa93ad172afd139999fbe72e8eacc5a1 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 14 Oct 2022 06:47:50 +0300 Subject: Use f-strings to do string interpolation --- wqflask/wqflask/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'wqflask') 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'] != "": -- cgit v1.2.3