Fix variable

This commit is contained in:
Klaus-Uwe Mitterer 2016-05-30 23:52:33 +02:00
parent 70d9cd4592
commit 8f2d551dce

View file

@ -14,7 +14,7 @@ class dbObject:
def initMySQL(self, host, port, user, pwd, db):
self.conn = pymysql.connect(host = host, port = port, user = user, password = pwd, db = db, charset = "utf8mb4", cursorclass = pymysql.cursors.DictCursor)
self.cur = conn.cursor()
self.cur = self.conn.cursor()
self.dbtype = MYSQL
self.host = host
self.port = port