diff options
author | Munyoki Kilyungi | 2022-10-09 19:38:13 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-11-08 11:22:05 +0300 |
commit | d09a9485aebe0fa40c9fed2064a975a7cdd06e87 (patch) | |
tree | 734b88d2bc09df9a39e8a16cc2c1ee73a0ee3d22 /wqflask/base/data_set | |
parent | 9c99f1b6fed878589d7da696b4a4dc9b04eb0502 (diff) | |
download | genenetwork2-d09a9485aebe0fa40c9fed2064a975a7cdd06e87.tar.gz |
Remove string check for 'None' in HTML template
In Jinja, you can use dot notation to check for values. If a value
does not exist, you get None by default.
* wqflask/base/data_set/dataset.py (Dataset.get_accession_id): Remove
returning a string version of None.
* wqflask/wqflask/templates/correlation_page.html: Delete `!= 'None'`.
Diffstat (limited to 'wqflask/base/data_set')
-rw-r--r-- | wqflask/base/data_set/dataset.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/base/data_set/dataset.py b/wqflask/base/data_set/dataset.py index 69c842ad..b6899278 100644 --- a/wqflask/base/data_set/dataset.py +++ b/wqflask/base/data_set/dataset.py @@ -88,9 +88,9 @@ class DataSet: ) results = cursor.fetchone() + # Returns None by default if this is not executed if results: return str(results[0]) - return "None" def retrieve_other_names(self): """This method fetches the the dataset names in search_result. |