From f81265ac735b837d8241d366832d4b98c2080909 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Fri, 2 Sep 2022 17:25:00 +0300 Subject: Delete insert query that's not run * wqflask/wqflask/db_info.py (InfoPage.get_info): Delete insert query --- wqflask/wqflask/db_info.py | 6 ++---- 1 file 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: -- cgit v1.2.3