parent
9f7a333e40
commit
e07fdcffb0
|
@ -117,6 +117,7 @@ def update_tube_index():
|
||||||
while True:
|
while True:
|
||||||
cur = db.cursor()
|
cur = db.cursor()
|
||||||
cur.execute("SELECT mac_address, universe, dmx_address FROM tubes")
|
cur.execute("SELECT mac_address, universe, dmx_address FROM tubes")
|
||||||
|
global TUBE_INDEX
|
||||||
TUBE_INDEX = cur.fetchall()
|
TUBE_INDEX = cur.fetchall()
|
||||||
cur.close()
|
cur.close()
|
||||||
print("Updated index: "+str(TUBE_INDEX))
|
print("Updated index: "+str(TUBE_INDEX))
|
||||||
|
|
Loading…
Reference in New Issue