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:
parent
44982fd439
commit
934fa4d37f
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user