From aa9f978a3a3ddb7a829e0125497ed6080b07f805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 01:22:31 +0100 Subject: [PATCH] added db autocommit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/app.py b/server/app.py index 7f7b0b4..a970778 100644 --- a/server/app.py +++ b/server/app.py @@ -40,6 +40,8 @@ db = MySQLdb.connect( database=config['mysql']['database'], ) +db.autocommit(True) + mqtt_client_id = "PiXelTubeMaster-"+wlan_mac_address # Function to register a tube in the database