From ab986afb77019b166e84f11297d1b8aad18ccae0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 01:32:10 +0100 Subject: [PATCH] removed debug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 4 ---- server/web/index.php | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/server/app.py b/server/app.py index a970778..8bc8f68 100644 --- a/server/app.py +++ b/server/app.py @@ -52,15 +52,11 @@ def register_tube(mac_address): cur.execute("SELECT * FROM tubes WHERE mac_address = %s", (mac_address,)) existing_tube = cur.fetchone() - print(existing_tube) - # Check if the tube exsist. If it doesn't create a new db row if not existing_tube: cur.execute("INSERT INTO tubes (mac_address, universe, dmx_address) VALUES (%s, %s, %s)", (mac_address, 0, 1)) - print("executed") else: - print("already exists") pass cur.close() diff --git a/server/web/index.php b/server/web/index.php index 449e720..c62459d 100644 --- a/server/web/index.php +++ b/server/web/index.php @@ -32,7 +32,9 @@ die("Connection failed: " . $conn->connect_error); } echo "Connected successfully"; - ?> + + + ?> ?>