update index each second
Signed-off-by: Ebbe Baß <ebbe.bass>
This commit is contained in:
+1
-1
@@ -122,7 +122,7 @@ def update_tube_index():
|
|||||||
TUBE_INDEX = cur.fetchall()
|
TUBE_INDEX = cur.fetchall()
|
||||||
cur.close()
|
cur.close()
|
||||||
print("Updated index: "+str(TUBE_INDEX))
|
print("Updated index: "+str(TUBE_INDEX))
|
||||||
time.sleep(10)
|
time.sleep(1)
|
||||||
|
|
||||||
def mqtt_publisher():
|
def mqtt_publisher():
|
||||||
global TUBE_INDEX
|
global TUBE_INDEX
|
||||||
|
|||||||
Reference in New Issue
Block a user