declare as globa

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 17:30:09 +01:00
parent 348ee5e4ad
commit a484a63149
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ mqtt_client_id = "PiXelTubeMaster-"+wlan_mac_address
cur = db.cursor()
cur.execute("SELECT mac_address, universe, dmx_address FROM tubes")
global TUBE_INDEX
TUBE_INDEX = cur.fetchall()
cur.close()