From 92305a7712e1932f77fa735ad7825a5129ba2b02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 16:26:38 +0100 Subject: [PATCH] removed db request at script start MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/app.py b/server/app.py index d86a24d..fccb34e 100644 --- a/server/app.py +++ b/server/app.py @@ -43,11 +43,11 @@ db.autocommit(True) 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() +# cur = db.cursor() +# cur.execute("SELECT mac_address, universe, dmx_address FROM tubes") +# global TUBE_INDEX +# TUBE_INDEX = cur.fetchall() +# cur.close() # Function to register a tube in the database def register_tube(mac_address):