diff --git a/server/app.py b/server/app.py index 0c600d6..d98a8d0 100644 --- a/server/app.py +++ b/server/app.py @@ -148,7 +148,7 @@ def tube_index_updater(shared_mem): cur.execute("SELECT mac_address, universe, dmx_address FROM tubes") tube_index = cur.fetchall() cur.close() - shared_mem.buf[:24] = str(tube_index).encode() + shared_mem.buf[:24] = bytes(tube_index).encode() print("Updated tube index with values: "+str(tube_index)) except Exception as e: print(e)