From 3013a9afcc5f99335e51ca18680a1502eb533264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Wed, 14 Feb 2024 02:37:57 +0100 Subject: [PATCH] list to int MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app.py b/server/app.py index 395629b..bf6a59a 100644 --- a/server/app.py +++ b/server/app.py @@ -153,10 +153,10 @@ def mqtt_publisher(artnetUniverse): def start_mqtt_publishers(universe_count): used_universes = universe_count print("universe count: "+str(used_universes)) - universes_to_publish = range(1, used_universes + 1) + universes_to_publish = list(range(1, used_universes + 1)) # Create and start a thread for each universe for universe in range(universes_to_publish): - threads = [threading.Thread(target=mqtt_publisher, args=(universe,))] + threads = [threading.Thread(target=mqtt_publisher, args=(int(universe),))] for thread in threads: thread.start()