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"; - ?> + + + ?> ?>