From ef147dd95651d98ba1e236ece23b199b9fca36c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 16:10:35 +0100 Subject: [PATCH] test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index cf1b69d..aa3863a 100644 --- a/server/app.py +++ b/server/app.py @@ -109,10 +109,10 @@ def connect_mqtt(): return client def update_tube_index(): + global result while True: cur = db.cursor() cur.execute("SELECT mac_address, universe, dmx_address FROM tubes") - global result result = cur.fetchall() cur.close() print("Updated index: "+str(result))