From 9dc593bfdf17a25cb003ddf9819c477344e2c183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 03:44:18 +0100 Subject: [PATCH] added db cursor at update tube index 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 904dece..88d369a 100644 --- a/server/app.py +++ b/server/app.py @@ -179,6 +179,7 @@ def start_mqtt_publishers(): def update_tube_index(): while True: time.sleep(2) + cur = db.cursor() cur.execute("SELECT mac_address, universe, dmx_address FROM tubes") global result result = cur.fetchall()