From 0be3db39aff8408474be815060dd7bdf6f2a2998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 01:07:11 +0100 Subject: [PATCH] testing something else for the if exsist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index 7b077c9..76cad0d 100644 --- a/server/app.py +++ b/server/app.py @@ -53,7 +53,7 @@ def register_tube(mac_address): print(existing_tube) # Check if the tube exsist. If it doesn't create a new db row - if existing_tube is None: + if not existing_tube: cur.execute("INSERT INTO tubes (mac_address, universe, dmx_address) VALUES (%s, %s, %s)", (mac_address, 0, 1)) else: