testing something else for the if exsist

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 01:07:11 +01:00
parent 9aa44f1292
commit 0be3db39af
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ def register_tube(mac_address):
print(existing_tube) print(existing_tube)
# Check if the tube exsist. If it doesn't create a new db row # 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)", cur.execute("INSERT INTO tubes (mac_address, universe, dmx_address) VALUES (%s, %s, %s)",
(mac_address, 0, 1)) (mac_address, 0, 1))
else: else: