diff options
author | Munyoki Kilyungi | 2022-09-02 17:25:00 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-09-08 14:26:19 +0300 |
commit | f81265ac735b837d8241d366832d4b98c2080909 (patch) | |
tree | a96c25ee363a26b11ca366f5f44105435c41b906 | |
parent | b7ab93c93af656da6b7bee5cff02076921c3032c (diff) | |
download | genenetwork2-f81265ac735b837d8241d366832d4b98c2080909.tar.gz |
Delete insert query that's not run
* wqflask/wqflask/db_info.py (InfoPage.get_info): Delete insert query
-rw-r--r-- | wqflask/wqflask/db_info.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/wqflask/wqflask/db_info.py b/wqflask/wqflask/db_info.py index 9bedd8be..f5c029a6 100644 --- a/wqflask/wqflask/db_info.py +++ b/wqflask/wqflask/db_info.py @@ -50,10 +50,8 @@ class InfoPage: if results: self.info = process_query_results(results) - if (not results or len(results) < 1) and self.info_page_name and create: - insert_newlines = ( - "INSERT INTO InfoFiles SET " - f"InfoFiles.InfoPageName={self.info_page_name}") + if ((not results or len(results) < 1) + and self.info_page_name and create): return self.get_info() if not self.gn_accession_id and self.info: |