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