From 4f6f06d92d042896c888da70d6d6b29361062c22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 16:01:18 +0100 Subject: [PATCH] removed some shitty code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/server/app.py b/server/app.py index 975617e..f5ee1e8 100644 --- a/server/app.py +++ b/server/app.py @@ -123,10 +123,6 @@ def start_mqtt_publishers(result): mqtt_client = connect_mqtt() artnetBindIp = get_eth0_ip() artNet = Artnet.Artnet(BINDIP = artnetBindIp, DEBUG = True, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster", PORT = 6454) - cur = db.cursor() - cur.execute("SELECT mac_address, universe, dmx_address FROM tubes") - result = cur.fetchall() - cur.close() while True: try: # Gets whatever the last Art-Net packet we received is @@ -158,6 +154,5 @@ if __name__ == "__main__": flask_thread = Process(target=flask_api) flask_thread.start() time.sleep(1) - global result - publisher_thread = Process(target=start_mqtt_publishers, args=(result, )) + publisher_thread = Process(target=start_mqtt_publishers, args=()) publisher_thread.start()