diff --git a/server/app.py b/server/app.py index 0020b7d..d258086 100644 --- a/server/app.py +++ b/server/app.py @@ -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()