added db autocommit

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 01:22:31 +01:00
parent 355bb6c4a5
commit aa9f978a3a
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ db = MySQLdb.connect(
database=config['mysql']['database'], database=config['mysql']['database'],
) )
db.autocommit(True)
mqtt_client_id = "PiXelTubeMaster-"+wlan_mac_address mqtt_client_id = "PiXelTubeMaster-"+wlan_mac_address
# Function to register a tube in the database # Function to register a tube in the database