diff options
author | Pjotr Prins | 2016-06-23 05:43:46 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-06-23 05:43:46 +0000 |
commit | 2e8351ee52a67bf7dfee7d323458b3fa80cacf41 (patch) | |
tree | 9dc86eebc5d26401da44a1c19181f397fc184f12 /wqflask/utility | |
parent | 968eb8c1d8703c3d5c84f2162eae365b930c008d (diff) | |
download | genenetwork2-2e8351ee52a67bf7dfee7d323458b3fa80cacf41.tar.gz |
Add warnings for adding MySQLdb cursor
Diffstat (limited to 'wqflask/utility')
-rw-r--r-- | wqflask/utility/AJAX_table.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wqflask/utility/AJAX_table.py b/wqflask/utility/AJAX_table.py index 083d1c0d..d70acfcd 100644 --- a/wqflask/utility/AJAX_table.py +++ b/wqflask/utility/AJAX_table.py @@ -68,6 +68,8 @@ class AJAX_table: workbook = xl.Writer('%s.xls' % (webqtlConfig.TMPDIR+file)) worksheet = workbook.add_worksheet() + 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() |