update index each second

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 16:24:43 +01:00
parent 0f78218ab7
commit 72ea1dc7c5
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ def update_tube_index():
TUBE_INDEX = cur.fetchall()
cur.close()
print("Updated index: "+str(TUBE_INDEX))
time.sleep(10)
time.sleep(1)
def mqtt_publisher():
global TUBE_INDEX