aboutsummaryrefslogtreecommitdiff
path: root/wqflask/db
diff options
context:
space:
mode:
authorzsloan2018-04-18 15:50:32 +0000
committerzsloan2018-04-18 15:50:32 +0000
commitf59c0c12415a23982e593f46b608fedab2367c03 (patch)
treee2e065ed2991403c718a91895597bf6753f9c408 /wqflask/db
parent6c50d1d26934d682ff0d3c8ee95caefa6c3393dd (diff)
downloadgenenetwork2-f59c0c12415a23982e593f46b608fedab2367c03.tar.gz
Removed a little more code in webqtlDatabaseFunction.py and do_search
Diffstat (limited to 'wqflask/db')
-rw-r--r--wqflask/db/webqtlDatabaseFunction.py8
1 files changed, 0 insertions, 8 deletions
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"