added db cursor at update tube index

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 03:44:18 +01:00
parent 5bb1f9865f
commit 9dc593bfdf
1 changed files with 1 additions and 0 deletions

View File

@ -179,6 +179,7 @@ def start_mqtt_publishers():
def update_tube_index():
while True:
time.sleep(2)
cur = db.cursor()
cur.execute("SELECT mac_address, universe, dmx_address FROM tubes")
global result
result = cur.fetchall()