From 72ea1dc7c562171b55222cd51e0c06bcac1b5907 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 16:24:43 +0100 Subject: [PATCH] update index each second MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index c84c3ad..c422c33 100644 --- a/server/app.py +++ b/server/app.py @@ -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