aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2020-10-09 01:04:03 +0300
committerBonfaceKilz2020-10-09 01:06:03 +0300
commitf604c81a5cf501c39bf195159a5b1c70a97195dc (patch)
treec43cda516bf79065ad9343ed24d5155458e5801b
parent8db56f2472aa8d2549ff9fb2045f257c0388f6cc (diff)
downloadgenenetwork2-f604c81a5cf501c39bf195159a5b1c70a97195dc.tar.gz
Replace string concat("+") with python3's f-string
-rw-r--r--wqflask/wqflask/ctl/ctl_analysis.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/ctl/ctl_analysis.py b/wqflask/wqflask/ctl/ctl_analysis.py
index 6ffba28f..72b4f3a3 100644
--- a/wqflask/wqflask/ctl/ctl_analysis.py
+++ b/wqflask/wqflask/ctl/ctl_analysis.py
@@ -186,8 +186,8 @@ class CTL(object):
self.addNode(gtT)
self.addEdge(gtS, gtT, significant, x)
- significant[0][x] = gtS.symbol + " (" + gtS.name + ")" # Update the trait name for the displayed table
- significant[2][x] = gtT.symbol + " (" + gtT.name + ")" # Update the trait name for the displayed table
+ significant[0][x] = "{} ({})".format(gtS.symbol, gtS.name) # Update the trait name for the displayed table
+ significant[2][x] = "{} ({})".format(gtT.symbol, gtT.name) # Update the trait name for the displayed table
self.elements = json.dumps(self.nodes_list + self.edges_list)