update index each second

Signed-off-by: Ebbe Baß <ebbe.bass>
This commit is contained in:
Ebbe Baß
2024-02-17 16:24:43 +01:00
parent 0f78218ab7
commit 72ea1dc7c5
+1 -1
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