Fix variable

This commit is contained in:
Klaus-Uwe Mitterer 2016-05-30 23:52:33 +02:00
parent 6297f37bd7
commit 2b1b640c5d

View file

@ -14,7 +14,7 @@ class dbObject:
def initMySQL(self, host, port, user, pwd, db): 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.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.dbtype = MYSQL
self.host = host self.host = host
self.port = port self.port = port