updated sql to use dict
This commit is contained in:
@@ -147,7 +147,7 @@ dbconfig = {
|
||||
logger.debug("Starting SQL query for LDAPUsers")
|
||||
cnx = mysql.connector.connect(**dbconfig)
|
||||
logger.debug("SQL Connection: {0}".format(cnx))
|
||||
cursor = cnx.cursor()
|
||||
cursor = cnx.cursor(dictionary=True)
|
||||
query = ("SELECT * FROM LDAPUsers")
|
||||
logger.debug("Query: {0}".format(query))
|
||||
cursor.execute(query)
|
||||
|
||||
Reference in New Issue
Block a user