From f59c0c12415a23982e593f46b608fedab2367c03 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 18 Apr 2018 15:50:32 +0000 Subject: Removed a little more code in webqtlDatabaseFunction.py and do_search --- wqflask/db/webqtlDatabaseFunction.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'wqflask/db') diff --git a/wqflask/db/webqtlDatabaseFunction.py b/wqflask/db/webqtlDatabaseFunction.py index ba998e91..8a9dc79d 100644 --- a/wqflask/db/webqtlDatabaseFunction.py +++ b/wqflask/db/webqtlDatabaseFunction.py @@ -30,14 +30,6 @@ logger = getLogger(__name__ ) #output: cursor instance #function: connect to database and return cursor instance ########################################################################### -def getCursor(): - try: - logger.warning("Creating new MySQLdb cursor (this method is OBSOLETE!)") - con = MySQLdb.Connect(db=webqtlConfig.DB_NAME, host=webqtlConfig.MYSQL_SERVER, user=webqtlConfig.DB_USER, passwd=webqtlConfig.DB_PASSWD) - cursor = con.cursor() - return cursor - except: - return None def retrieve_species(group): """Get the species of a group (e.g. returns string "mouse" on "BXD" -- cgit v1.2.3