Fix variable
This commit is contained in:
parent
6297f37bd7
commit
2b1b640c5d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue