aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2022-09-02 17:23:03 +0300
committerBonfaceKilz2022-09-08 14:26:19 +0300
commitb7ab93c93af656da6b7bee5cff02076921c3032c (patch)
treeb6216ab03e3b6cbc5118ee0b82547fd8f63f2582
parentef84210728e798d66027408bd8695051e22a1510 (diff)
downloadgenenetwork2-b7ab93c93af656da6b7bee5cff02076921c3032c.tar.gz
Remove "if" block that does nothing
* wqflask/wqflask/db_info.py (InfoPage.get_info): Remove if block that constructs a "final" query that does nothing.
-rw-r--r--wqflask/wqflask/db_info.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/wqflask/wqflask/db_info.py b/wqflask/wqflask/db_info.py
index 2ce71fb7..9bedd8be 100644
--- a/wqflask/wqflask/db_info.py
+++ b/wqflask/wqflask/db_info.py
@@ -43,8 +43,6 @@ class InfoPage:
if self.gn_accession_id:
final_query = f"{query_base}GN_AccesionId = {self.gn_accession_id}"
results = g.db.execute(final_query).fetchone()
- if self.info_page_name and not results:
- final_query = f"{query_base}InfoPageName = {self.info_page_name}"
elif self.info_page_name:
final_query = f"{query_base}InfoPageName = {self.info_page_name}"
results = g.db.execute(final_query).fetchone()