From 934fa4d37f62af83ee6e988c05156e8fdb7350b3 Mon Sep 17 00:00:00 2001 From: Bradley Bickford Date: Sat, 6 Jan 2024 15:48:08 -0500 Subject: [PATCH] Setting auto commit on the db connection to true because apparently it defaults to false. Meaning nothing gets written to the DB --- bin/breadmixer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/breadmixer.py b/bin/breadmixer.py index 44bc874..4c5c157 100644 --- a/bin/breadmixer.py +++ b/bin/breadmixer.py @@ -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()