From 5bb1f9865f92d9e917fa562b6bdeed958116109b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 03:43:09 +0100 Subject: [PATCH] added cur close 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, 2 insertions(+) diff --git a/server/app.py b/server/app.py index db05c1a..904dece 100644 --- a/server/app.py +++ b/server/app.py @@ -118,6 +118,7 @@ def start_mqtt_publishers(): cur.execute("SELECT mac_address, universe, dmx_address FROM tubes") global result result = cur.fetchall() + cur.close() while True: try: # Gets whatever the last Art-Net packet we received is @@ -181,6 +182,7 @@ def update_tube_index(): cur.execute("SELECT mac_address, universe, dmx_address FROM tubes") global result result = cur.fetchall() + cur.close() if __name__ == "__main__": flask_thread = Process(target=flask_api)