From e07fdcffb0f49e5292b6aa15c9e43eaace892dce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 16:17:35 +0100 Subject: [PATCH] added global in index updater 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 45da9f5..62e0674 100644 --- a/server/app.py +++ b/server/app.py @@ -117,6 +117,7 @@ def update_tube_index(): while True: cur = db.cursor() cur.execute("SELECT mac_address, universe, dmx_address FROM tubes") + global TUBE_INDEX TUBE_INDEX = cur.fetchall() cur.close() print("Updated index: "+str(TUBE_INDEX))