From 19e37b2b889939363c32aec2c8f362bad213a9dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 00:58:45 +0100 Subject: [PATCH] debug some shit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- client/main.py | 1 + server/app.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/client/main.py b/client/main.py index ef034eb..4b614a2 100644 --- a/client/main.py +++ b/client/main.py @@ -98,6 +98,7 @@ def loopCheckSettingUpdates(): global universe global dmx_address universe, dmx_address = get_assigned_params() + print(universe, dmx_address) except Exception as e: print(f"Error: {e}") time.sleep(2) diff --git a/server/app.py b/server/app.py index 70e8d0b..5c2eafe 100644 --- a/server/app.py +++ b/server/app.py @@ -50,6 +50,8 @@ def register_tube(mac_address): cur.execute("SELECT * FROM tubes WHERE mac_address = %s", (mac_address,)) existing_tube = cur.fetchone() + print(existing_tube) + if existing_tube: # Tube already exists, do nothing for now pass