added db autocommit
Signed-off-by: Ebbe Baß <ebbe.bass>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user