From a484a6314913bbae95ff7fb7aca4ffaec644a0e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 17:30:09 +0100 Subject: [PATCH] declare as globa MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 1 + 1 file changed, 1 insertion(+) 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()