diff --git a/server/app.py b/server/app.py index cf1b69d..aa3863a 100644 --- a/server/app.py +++ b/server/app.py @@ -109,10 +109,10 @@ def connect_mqtt(): return client def update_tube_index(): + global result while True: cur = db.cursor() cur.execute("SELECT mac_address, universe, dmx_address FROM tubes") - global result result = cur.fetchall() cur.close() print("Updated index: "+str(result))