aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/trait.py
diff options
context:
space:
mode:
authorBonfaceKilz2021-04-30 13:01:02 +0300
committerBonfaceKilz2021-04-30 13:45:15 +0300
commit90ec57905c8afdbd5e9e8c44dcc369bd0e9c2d1b (patch)
treecc6ce096e5e96e4794fb49d041fda67ed6229c0e /wqflask/base/trait.py
parentbd702e59d7a426fe351d34367bf824683c655696 (diff)
downloadgenenetwork2-90ec57905c8afdbd5e9e8c44dcc369bd0e9c2d1b.tar.gz
autopep8: Fix W504
Diffstat (limited to 'wqflask/base/trait.py')
-rw-r--r--wqflask/base/trait.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index 5574128d..d09cfd40 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -479,9 +479,9 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False):
else:
description_display = trait.symbol
- if (str(description_display or "") != "" and
- description_display != 'N/A' and
- str(target_string or "") != "" and target_string != 'None'):
+ if (str(description_display or "") != ""
+ and description_display != 'N/A'
+ and str(target_string or "") != "" and target_string != 'None'):
description_display = description_display + '; ' + target_string.strip()
# Save it for the jinja2 template
@@ -575,6 +575,6 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False):
if str(trait.lrs or "") != "":
trait.LRS_score_repr = LRS_score_repr = '%3.1f' % trait.lrs
else:
- raise KeyError(repr(trait.name) +
- ' information is not found in the database.')
+ raise KeyError(repr(trait.name)
+ + ' information is not found in the database.')
return trait