Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 16:10:35 +01:00
parent 1c515de7cc
commit ef147dd956
1 changed files with 1 additions and 1 deletions

View File

@ -109,10 +109,10 @@ def connect_mqtt():
return client
def update_tube_index():
global result
while True:
cur = db.cursor()
cur.execute("SELECT mac_address, universe, dmx_address FROM tubes")
global result
result = cur.fetchall()
cur.close()
print("Updated index: "+str(result))