parent
ca5a386339
commit
355bb6c4a5
|
@ -56,7 +56,9 @@ def register_tube(mac_address):
|
||||||
if not existing_tube:
|
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))
|
||||||
|
print("executed")
|
||||||
else:
|
else:
|
||||||
|
print("already exists")
|
||||||
pass
|
pass
|
||||||
cur.close()
|
cur.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue