Setting auto commit on the db connection to true because apparently it defaults to false. Meaning nothing gets written to the DB

This commit is contained in:
Bradley Bickford 2024-01-06 15:48:08 -05:00
parent 44982fd439
commit 934fa4d37f

View File

@ -52,6 +52,7 @@ mydb = mysql.connector.connect(
password=json_config["mysql_password"],
database=json_config["mysql_db_name"]
)
mydb.autocommit = True
cursor = mydb.cursor()