update index each second
Signed-off-by: Ebbe Baß <ebbe.bass>
This commit is contained in:
1 parent
0f78218ab7
commit
72ea1dc7c5
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user